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 SummaryFields Modifier and Type Field Description protected static javax.swing.UIDefaultsiconsThe service container icon.protected java.lang.StringnameThe name.- 
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 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(ITreeNode node)Overridden for alphabetical insert.byte[]getIcon()Get the icon as byte[] for a node.java.lang.ObjectgetId()Get the id used for lookup.javax.swing.IcongetSwingIcon()Get the icon for a node.java.lang.StringgetTooltipText()Get tooltip text.voidremoveChild(ITreeNode node)Remove a child and update the tree.protected voidsearchChildren()Asynchronously search for children.voidsetChildren(java.util.List<? extends ITreeNode> newchildren)Made public.java.lang.StringtoString()A string representation.- 
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNodeaddChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getPropertiesComponent, getTree, isLeaf, refresh
 - 
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNodecheckChildren, dispose, hashCode, hasProperties, removeAllChildren, setParent
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.base.gui.asynctree.ITreeNodedispose, hasProperties
 
- 
 
- 
- 
- 
Constructor Detail- 
ViewTreeNodepublic 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- 
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
 
 - 
searchChildrenprotected void searchChildren() Asynchronously search for children. Called once for each node. Should call setChildren() once children are found.- Specified by:
- searchChildrenin class- AbstractTreeNode
 
 - 
toStringpublic java.lang.String toString() 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
 
 - 
setChildrenpublic void setChildren(java.util.List<? extends ITreeNode> newchildren) Made public.- Overrides:
- setChildrenin class- AbstractSwingTreeNode
 
 - 
addChildpublic void addChild(ITreeNode node) Overridden for alphabetical insert.- Overrides:
- addChildin class- AbstractSwingTreeNode
 
 - 
removeChildpublic void removeChild(ITreeNode node) Description copied from class:AbstractSwingTreeNodeRemove a child and update the tree. Must be called from swing thread.- Overrides:
- removeChildin class- AbstractSwingTreeNode
 
 
- 
 
-