Package jadex.base.gui.filetree
Class RootNode
- java.lang.Object
- 
- jadex.base.gui.asynctree.AbstractTreeNode
- 
- jadex.base.gui.asynctree.AbstractSwingTreeNode
- 
- jadex.base.gui.filetree.RootNode
 
 
 
- 
- All Implemented Interfaces:
- ISwingTreeNode,- ITreeNode
 
 public class RootNode extends AbstractSwingTreeNode The root node.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.ListchildrenThe list of child nodes.protected ComponentPropertiespropcompThe properties component (if any).- 
Fields inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNodetree
 - 
Fields inherited from class jadex.base.gui.asynctree.AbstractTreeNodechildrenfuture, dirty, model, parent, recurse, searching
 
- 
 - 
Constructor SummaryConstructors Constructor Description RootNode(AsyncSwingTreeModel model, javax.swing.JTree tree)Create a new service container node.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(ISwingTreeNode child)Add a child node.byte[]getIcon()Get the icon as byte[] for a node.java.lang.ObjectgetId()Get the id used for lookup.intgetIndex(ISwingTreeNode node)Returns the index of node in the receivers children.java.lang.String[]getPathEntries()Get the path entries {path, display name}.javax.swing.JComponentgetPropertiesComponent()Get or create a component displaying the node properties.javax.swing.IcongetSwingIcon()Get the icon for a node.java.lang.StringgetTooltipText()Get tooltip text.booleanhasProperties()True, if the node has properties that can be displayed.booleanisLeaf()Check if the node is a leaf.voidrefresh(boolean recurse)Refresh the node.voidremoveAll()Remove a path entry from the tree.voidremoveChild(ISwingTreeNode child)Remove a path entry from the tree.protected voidsearchChildren()Asynchronously search for children.voidsetChildren(java.util.List newchildren)Set the children.java.lang.StringtoString()Create a string representation.- 
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNodeaddChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, removeChild
 - 
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNodecheckChildren, dispose, hashCode, removeAllChildren, setParent
 
- 
 
- 
- 
- 
Field Detail- 
childrenprotected java.util.List children The list of child nodes.
 - 
propcompprotected ComponentProperties propcomp The properties component (if any).
 
- 
 - 
Constructor Detail- 
RootNodepublic RootNode(AsyncSwingTreeModel model, javax.swing.JTree tree) Create a new service container node.
 
- 
 - 
Method Detail- 
setChildrenpublic void setChildren(java.util.List newchildren) Set the children.- Overrides:
- setChildrenin class- AbstractSwingTreeNode
 
 - 
getIdpublic java.lang.Object getId() Get the id used for lookup.
 - 
getIconpublic byte[] getIcon() Get the icon as byte[] for a node.- Specified by:
- getIconin interface- ITreeNode
- Specified by:
- getIconin class- AbstractTreeNode
 
 - 
getSwingIconpublic javax.swing.Icon getSwingIcon() Get the icon for a node.- Specified by:
- getSwingIconin interface- ISwingTreeNode
- Specified by:
- getSwingIconin class- AbstractSwingTreeNode
 
 - 
refreshpublic void refresh(boolean recurse) Refresh the node.- Specified by:
- refreshin interface- ITreeNode
- Overrides:
- refreshin class- AbstractSwingTreeNode
- Parameters:
- recurse- Recursively refresh subnodes, if true.
 
 - 
searchChildrenprotected void searchChildren() Asynchronously search for children. Should call setChildren() once children are found.- Specified by:
- searchChildrenin class- AbstractTreeNode
 
 - 
addChildpublic void addChild(ISwingTreeNode child) Add a child node.- Parameters:
- child- The child node.
 
 - 
removeChildpublic void removeChild(ISwingTreeNode child) Remove a path entry from the tree.- Parameters:
- child- The child node.
 
 - 
removeAllpublic void removeAll() Remove a path entry from the tree.
 - 
toStringpublic java.lang.String toString() Create a string representation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
getTooltipTextpublic java.lang.String getTooltipText() Get tooltip text.- Specified by:
- getTooltipTextin interface- ITreeNode
- Specified by:
- getTooltipTextin class- AbstractTreeNode
 
 - 
hasPropertiespublic boolean hasProperties() True, if the node has properties that can be displayed.- Specified by:
- hasPropertiesin interface- ITreeNode
- Overrides:
- hasPropertiesin class- AbstractTreeNode
 
 - 
getPropertiesComponentpublic javax.swing.JComponent getPropertiesComponent() Get or create a component displaying the node properties. Only to be called if hasProperties() is true;- Specified by:
- getPropertiesComponentin interface- ISwingTreeNode
- Overrides:
- getPropertiesComponentin class- AbstractSwingTreeNode
 
 - 
isLeafpublic boolean isLeaf() Check if the node is a leaf.- Specified by:
- isLeafin interface- ITreeNode
- Overrides:
- isLeafin class- AbstractSwingTreeNode
 
 - 
getIndexpublic int getIndex(ISwingTreeNode node) Returns the index of node in the receivers children. If the receiver does not contain node, -1 will be returned.- Parameters:
- node-
- Returns:
- an int.
 
 - 
getPathEntriespublic java.lang.String[] getPathEntries() Get the path entries {path, display name}.
 
- 
 
-