Package jadex.base.gui.asynctree
Interface ITreeNode
-
- All Known Subinterfaces:
IActiveComponentTreeNode
,IFileNode
,ISwingTreeNode
- All Known Implementing Classes:
AbstractSwingTreeNode
,AbstractTreeNode
,ComponentTreeNode
,DirNode
,FileNode
,JarNode
,NFPropertyContainerNode
,NFPropertyNode
,PlatformTreeNode
,ProvidedServiceInfoNode
,ProxyComponentTreeNode
,PseudoProxyComponentTreeNode
,RemoteDirNode
,RemoteFileNode
,RemoteJarNode
,RequiredServiceNode
,RIDNode
,RootNode
,ServiceContainerNode
,ViewTreeNode
public interface ITreeNode
Node for the component tree panel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
Called when the node is removed or the tree is closed.java.util.List<ITreeNode>
getCachedChildren()
Get the cached children, i.e.ITreeNode
getChild(int index)
Get the given child.int
getChildCount()
Get the child count.IFuture<java.util.List<ITreeNode>>
getChildren()
Get the current children, i.e.byte[]
getIcon()
Get the icon for a node.java.lang.Object
getId()
Get the id used for lookup.int
getIndexOfChild(ITreeNode child)
Get the index of a child.ITreeNode
getParent()
Get the parent node.java.lang.String
getTooltipText()
Get the 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.
-
-
-
Method Detail
-
dispose
void dispose()
Called when the node is removed or the tree is closed.
-
getId
java.lang.Object getId()
Get the id used for lookup.
-
getParent
ITreeNode getParent()
Get the parent node.
-
getChildCount
int getChildCount()
Get the child count.
-
getChild
ITreeNode getChild(int index)
Get the given child.
-
getIndexOfChild
int getIndexOfChild(ITreeNode child)
Get the index of a child.
-
isLeaf
boolean isLeaf()
Check if the node is a leaf.
-
getIcon
byte[] getIcon()
Get the icon for a node.
-
getTooltipText
java.lang.String getTooltipText()
Get the tooltip text.
-
refresh
void refresh(boolean recurse)
Refresh the node.- Parameters:
recurse
- Recursively refresh subnodes, if true.
-
getCachedChildren
java.util.List<ITreeNode> getCachedChildren()
Get the cached children, i.e. do not start any background processes for updating the children.
-
getChildren
IFuture<java.util.List<ITreeNode>> getChildren()
Get the current children, i.e. start a new update process and provide the result as a future.
-
hasProperties
boolean hasProperties()
True, if the node has properties that can be displayed.
-
-