public class RootNode extends AbstractSwingTreeNode
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
children
The list of child nodes.
|
protected ComponentProperties |
propcomp
The properties component (if any).
|
tree
Constructor and Description |
---|
RootNode(AsyncSwingTreeModel model,
javax.swing.JTree tree)
Create a new service container node.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(ISwingTreeNode child)
Add a child node.
|
byte[] |
getIcon()
Get the icon as byte[] for a node.
|
java.lang.Object |
getId()
Get the id used for lookup.
|
int |
getIndex(ISwingTreeNode node)
Returns the index of node in the receivers children.
|
java.lang.String[] |
getPathEntries()
Get the path entries {path, display name}.
|
javax.swing.JComponent |
getPropertiesComponent()
Get or create a component displaying the node properties.
|
javax.swing.Icon |
getSwingIcon()
Get the icon for a node.
|
java.lang.String |
getTooltipText()
Get tooltip text.
|
boolean |
hasProperties()
True, if the node has properties that can be displayed.
|
boolean |
isLeaf()
Check if the node is a leaf.
|
void |
refresh(boolean recurse)
Refresh the node.
|
void |
removeAll()
Remove a path entry from the tree.
|
void |
removeChild(ISwingTreeNode child)
Remove a path entry from the tree.
|
protected void |
searchChildren()
Asynchronously search for children.
|
void |
setChildren(java.util.List newchildren)
Set the children.
|
java.lang.String |
toString()
Create a string representation.
|
addChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, removeChild
checkChildren, dispose, hashCode, removeAllChildren, setParent
protected java.util.List children
protected ComponentProperties propcomp
public RootNode(AsyncSwingTreeModel model, javax.swing.JTree tree)
public void setChildren(java.util.List newchildren)
setChildren
in class AbstractSwingTreeNode
public java.lang.Object getId()
public byte[] getIcon()
getIcon
in interface jadex.base.gui.asynctree.ITreeNode
getIcon
in class jadex.base.gui.asynctree.AbstractTreeNode
public javax.swing.Icon getSwingIcon()
getSwingIcon
in interface ISwingTreeNode
getSwingIcon
in class AbstractSwingTreeNode
public void refresh(boolean recurse)
refresh
in interface jadex.base.gui.asynctree.ITreeNode
refresh
in class AbstractSwingTreeNode
recurse
- Recursively refresh subnodes, if true.protected void searchChildren()
searchChildren
in class jadex.base.gui.asynctree.AbstractTreeNode
public void addChild(ISwingTreeNode child)
child
- The child node.public void removeChild(ISwingTreeNode child)
child
- The child node.public void removeAll()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTooltipText()
getTooltipText
in interface jadex.base.gui.asynctree.ITreeNode
getTooltipText
in class jadex.base.gui.asynctree.AbstractTreeNode
public boolean hasProperties()
hasProperties
in interface jadex.base.gui.asynctree.ITreeNode
hasProperties
in class jadex.base.gui.asynctree.AbstractTreeNode
public javax.swing.JComponent getPropertiesComponent()
getPropertiesComponent
in interface ISwingTreeNode
getPropertiesComponent
in class AbstractSwingTreeNode
public boolean isLeaf()
isLeaf
in interface jadex.base.gui.asynctree.ITreeNode
isLeaf
in class AbstractSwingTreeNode
public int getIndex(ISwingTreeNode node)
node
- public java.lang.String[] getPathEntries()