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.UIDefaults
icons
The image icons.protected java.util.List<? extends ITreeNode>
realchildren
The 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 void
addChild(int index, ITreeNode node)
Add a child and update the tree.void
addChild(ITreeNode node)
Add a child and update the tree.protected void
addNode(ITreeNode node)
protected ViewTreeNode
getChild(java.lang.String name)
protected ViewTreeNode
getChildApplications()
protected ViewTreeNode
getChildPlatforms()
protected ViewTreeNode
getChildSystem()
javax.swing.Icon
getSwingIcon()
Get the icon for a node.protected void
insertNode(ITreeNode node)
void
removeChild(ITreeNode node)
Remove a child and update the tree.protected void
removeNode(ITreeNode node)
protected void
setChildren(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:AbstractSwingTreeNode
Set the children. No children should be represented as empty list to avoid ongoing search for children.- Overrides:
setChildren
in 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:AbstractSwingTreeNode
Add a child and update the tree. Must be called from swing thread.- Overrides:
addChild
in classAbstractSwingTreeNode
-
addChild
public void addChild(ITreeNode node)
Description copied from class:AbstractSwingTreeNode
Add a child and update the tree. Must be called from swing thread.- 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
-
getSwingIcon
public javax.swing.Icon getSwingIcon()
Get the icon for a node.- Specified by:
getSwingIcon
in interfaceISwingTreeNode
- Overrides:
getSwingIcon
in classComponentTreeNode
-
-