Package jadex.base.gui.componenttree
Class PlatformTreeNode
- java.lang.Object
-
- jadex.base.gui.asynctree.AbstractTreeNode
-
- jadex.base.gui.asynctree.AbstractSwingTreeNode
-
- jadex.base.gui.componenttree.ComponentTreeNode
-
- jadex.base.gui.componenttree.PlatformTreeNode
-
- All Implemented Interfaces:
ISwingTreeNode,ITreeNode,IActiveComponentTreeNode
- Direct Known Subclasses:
ProxyComponentTreeNode
public class PlatformTreeNode extends ComponentTreeNode
The platform tree nodes displays a Jadex platform with views that group components into predefined folders (proxy, application, system).
-
-
Field Summary
Fields Modifier and Type Field Description static javax.swing.UIDefaultsiconsThe image icons.protected java.util.List<? extends ITreeNode>realchildrenThe real children.-
Fields inherited from class jadex.base.gui.componenttree.ComponentTreeNode
access, broken, busy, cmslistener, desc, iconcache, propcomp
-
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 PlatformTreeNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, IComponentDescription desc, ComponentIconCache iconcache, IExternalAccess access)Create a new service container node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(int index, ITreeNode node)Add a child and update the tree.voidaddChild(ITreeNode node)Add a child and update the tree.protected voidaddNode(ITreeNode node)protected ViewTreeNodegetChild(java.lang.String name)protected ViewTreeNodegetChildApplications()protected ViewTreeNodegetChildPlatforms()protected ViewTreeNodegetChildSystem()javax.swing.IcongetSwingIcon()Get the icon for a node.protected voidinsertNode(ITreeNode node)voidremoveChild(ITreeNode node)Remove a child and update the tree.protected voidremoveNode(ITreeNode node)protected voidsetChildren(java.util.List<? extends ITreeNode> newchildren)Set the children.-
Methods inherited from class jadex.base.gui.componenttree.ComponentTreeNode
addCMSListener, createComponentNode, createNFPropertyNodes, dispose, getComponentIdentifier, getDescription, getIcon, getId, getPropertiesComponent, getTooltipText, hasProperties, refresh, searchChildren, searchChildren, setDescription, toString
-
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNode
equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, isLeaf
-
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNode
checkChildren, hashCode, 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.ISwingTreeNode
getChild, getChildren, getParent
-
Methods inherited from interface jadex.base.gui.asynctree.ITreeNode
getCachedChildren, getChildCount, getIndexOfChild, isLeaf
-
-
-
-
Field Detail
-
icons
public static final javax.swing.UIDefaults icons
The image icons.
-
realchildren
protected java.util.List<? extends ITreeNode> realchildren
The real children.
-
-
Constructor Detail
-
PlatformTreeNode
public PlatformTreeNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, IComponentDescription desc, ComponentIconCache iconcache, IExternalAccess access)
Create a new service container node.
-
-
Method Detail
-
setChildren
protected void setChildren(java.util.List<? extends ITreeNode> newchildren)
Description copied from class:AbstractSwingTreeNodeSet the children. No children should be represented as empty list to avoid ongoing search for children.- Overrides:
setChildrenin classAbstractSwingTreeNode
-
getChildPlatforms
protected ViewTreeNode getChildPlatforms()
- Parameters:
name-- Returns:
-
getChildApplications
protected ViewTreeNode getChildApplications()
- Parameters:
name-- Returns:
-
getChildSystem
protected ViewTreeNode getChildSystem()
- Parameters:
name-- Returns:
-
getChild
protected ViewTreeNode getChild(java.lang.String name)
- Parameters:
name-- Returns:
-
addNode
protected void addNode(ITreeNode node)
-
removeNode
protected void removeNode(ITreeNode node)
-
insertNode
protected void insertNode(ITreeNode node)
-
addChild
public void addChild(int index, ITreeNode node)Description copied from class:AbstractSwingTreeNodeAdd a child and update the tree. Must be called from swing thread.- Overrides:
addChildin classAbstractSwingTreeNode
-
addChild
public void addChild(ITreeNode node)
Description copied from class:AbstractSwingTreeNodeAdd a child and update the tree. Must be called from swing thread.- Overrides:
addChildin classAbstractSwingTreeNode
-
removeChild
public void removeChild(ITreeNode node)
Description copied from class:AbstractSwingTreeNodeRemove a child and update the tree. Must be called from swing thread.- Overrides:
removeChildin classAbstractSwingTreeNode
-
getSwingIcon
public javax.swing.Icon getSwingIcon()
Get the icon for a node.- Specified by:
getSwingIconin interfaceISwingTreeNode- Overrides:
getSwingIconin classComponentTreeNode
-
-