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, removeChildcheckChildren, dispose, hashCode, removeAllChildren, setParentprotected 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 AbstractSwingTreeNodepublic java.lang.Object getId()
public byte[] getIcon()
getIcon in interface jadex.base.gui.asynctree.ITreeNodegetIcon in class jadex.base.gui.asynctree.AbstractTreeNodepublic javax.swing.Icon getSwingIcon()
getSwingIcon in interface ISwingTreeNodegetSwingIcon in class AbstractSwingTreeNodepublic void refresh(boolean recurse)
refresh in interface jadex.base.gui.asynctree.ITreeNoderefresh in class AbstractSwingTreeNoderecurse - Recursively refresh subnodes, if true.protected void searchChildren()
searchChildren in class jadex.base.gui.asynctree.AbstractTreeNodepublic 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.Objectpublic java.lang.String getTooltipText()
getTooltipText in interface jadex.base.gui.asynctree.ITreeNodegetTooltipText in class jadex.base.gui.asynctree.AbstractTreeNodepublic boolean hasProperties()
hasProperties in interface jadex.base.gui.asynctree.ITreeNodehasProperties in class jadex.base.gui.asynctree.AbstractTreeNodepublic javax.swing.JComponent getPropertiesComponent()
getPropertiesComponent in interface ISwingTreeNodegetPropertiesComponent in class AbstractSwingTreeNodepublic boolean isLeaf()
isLeaf in interface jadex.base.gui.asynctree.ITreeNodeisLeaf in class AbstractSwingTreeNodepublic int getIndex(ISwingTreeNode node)
node - public java.lang.String[] getPathEntries()