Package jadex.base.gui.componenttree
Class ViewTreeNode
- java.lang.Object
-
- jadex.base.gui.asynctree.AbstractTreeNode
-
- jadex.base.gui.asynctree.AbstractSwingTreeNode
-
- jadex.base.gui.componenttree.ViewTreeNode
-
- All Implemented Interfaces:
ISwingTreeNode
,ITreeNode
public class ViewTreeNode extends AbstractSwingTreeNode
The view tree node is used by the platform node to display 'proxy', 'application' and 'system' subfolders.
-
-
Field Summary
Fields Modifier and Type Field Description protected static javax.swing.UIDefaults
icons
The service container icon.protected java.lang.String
name
The name.-
Fields inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNode
tree
-
Fields inherited from class jadex.base.gui.asynctree.AbstractTreeNode
childrenfuture, dirty, model, parent, recurse, searching
-
-
Constructor Summary
Constructors Constructor Description ViewTreeNode(java.lang.String name, ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, java.util.List<? extends ITreeNode> children)
Create a new service container node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(ITreeNode node)
Overridden for alphabetical insert.byte[]
getIcon()
Get the icon as byte[] for a node.java.lang.Object
getId()
Get the id used for lookup.javax.swing.Icon
getSwingIcon()
Get the icon for a node.java.lang.String
getTooltipText()
Get tooltip text.void
removeChild(ITreeNode node)
Remove a child and update the tree.protected void
searchChildren()
Asynchronously search for children.void
setChildren(java.util.List<? extends ITreeNode> newchildren)
Made public.java.lang.String
toString()
A string representation.-
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNode
addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getPropertiesComponent, getTree, isLeaf, refresh
-
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNode
checkChildren, dispose, hashCode, hasProperties, removeAllChildren, setParent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jadex.base.gui.asynctree.ITreeNode
dispose, hasProperties
-
-
-
-
Constructor Detail
-
ViewTreeNode
public ViewTreeNode(java.lang.String name, ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, java.util.List<? extends ITreeNode> children)
Create a new service container node.
-
-
Method Detail
-
getId
public java.lang.Object getId()
Get the id used for lookup.
-
getIcon
public byte[] getIcon()
Get the icon as byte[] for a node.- Specified by:
getIcon
in interfaceITreeNode
- Specified by:
getIcon
in classAbstractTreeNode
-
getSwingIcon
public javax.swing.Icon getSwingIcon()
Get the icon for a node.- Specified by:
getSwingIcon
in interfaceISwingTreeNode
- Specified by:
getSwingIcon
in classAbstractSwingTreeNode
-
searchChildren
protected void searchChildren()
Asynchronously search for children. Called once for each node. Should call setChildren() once children are found.- Specified by:
searchChildren
in classAbstractTreeNode
-
toString
public java.lang.String toString()
A string representation.- Overrides:
toString
in classjava.lang.Object
-
getTooltipText
public java.lang.String getTooltipText()
Get tooltip text.- Specified by:
getTooltipText
in interfaceITreeNode
- Specified by:
getTooltipText
in classAbstractTreeNode
-
setChildren
public void setChildren(java.util.List<? extends ITreeNode> newchildren)
Made public.- Overrides:
setChildren
in classAbstractSwingTreeNode
-
addChild
public void addChild(ITreeNode node)
Overridden for alphabetical insert.- Overrides:
addChild
in classAbstractSwingTreeNode
-
removeChild
public void removeChild(ITreeNode node)
Description copied from class:AbstractSwingTreeNode
Remove a child and update the tree. Must be called from swing thread.- Overrides:
removeChild
in classAbstractSwingTreeNode
-
-