Package jadex.base.gui.componenttree
Class ProxyComponentTreeNode
- java.lang.Object
-
- jadex.base.gui.asynctree.AbstractTreeNode
-
- jadex.base.gui.asynctree.AbstractSwingTreeNode
-
- jadex.base.gui.componenttree.ComponentTreeNode
-
- jadex.base.gui.componenttree.PlatformTreeNode
-
- jadex.base.gui.componenttree.ProxyComponentTreeNode
-
- All Implemented Interfaces:
ISwingTreeNode
,ITreeNode
,IActiveComponentTreeNode
public class ProxyComponentTreeNode extends PlatformTreeNode
Node that represents a remote component and blends in the tree of components as virtual children of this node.
-
-
Field Summary
Fields Modifier and Type Field Description protected IComponentIdentifier
cid
The remote component identifier.protected static javax.swing.UIDefaults
icons
The image icons.protected IProxyAgentService.State
state
The connection state.-
Fields inherited from class jadex.base.gui.componenttree.PlatformTreeNode
realchildren
-
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 ProxyComponentTreeNode(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 IComponentIdentifier
getComponentIdentifier()
Get the cid.protected IFuture<IProxyAgentService.State>
getConnectionState()
Get the connection state.IFuture<IComponentIdentifier>
getRemoteComponentIdentifier()
Get the remote component identifier.javax.swing.Icon
getSwingIcon()
Get the icon for a node.boolean
isConnected()
Get the connected.protected void
searchChildren()
Asynchronously search for children.java.lang.String
toString()
Create a string representation.-
Methods inherited from class jadex.base.gui.componenttree.PlatformTreeNode
addChild, addChild, addNode, getChild, getChildApplications, getChildPlatforms, getChildSystem, insertNode, removeChild, removeNode, setChildren
-
Methods inherited from class jadex.base.gui.componenttree.ComponentTreeNode
addCMSListener, createComponentNode, createNFPropertyNodes, dispose, getDescription, getIcon, getId, getPropertiesComponent, getTooltipText, hasProperties, refresh, searchChildren, setDescription
-
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
protected static final javax.swing.UIDefaults icons
The image icons.
-
cid
protected IComponentIdentifier cid
The remote component identifier.
-
state
protected IProxyAgentService.State state
The connection state.
-
-
Constructor Detail
-
ProxyComponentTreeNode
public ProxyComponentTreeNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, IComponentDescription desc, ComponentIconCache iconcache, IExternalAccess access)
Create a new service container node.
-
-
Method Detail
-
getComponentIdentifier
public IComponentIdentifier getComponentIdentifier()
Get the cid.- Specified by:
getComponentIdentifier
in interfaceIActiveComponentTreeNode
- Overrides:
getComponentIdentifier
in classComponentTreeNode
- Returns:
- the cid.
-
getSwingIcon
public javax.swing.Icon getSwingIcon()
Get the icon for a node.- Specified by:
getSwingIcon
in interfaceISwingTreeNode
- Overrides:
getSwingIcon
in classPlatformTreeNode
-
searchChildren
protected void searchChildren()
Asynchronously search for children. Called once for each node. Should call setChildren() once children are found.- Overrides:
searchChildren
in classComponentTreeNode
-
toString
public java.lang.String toString()
Create a string representation.- Overrides:
toString
in classComponentTreeNode
-
getRemoteComponentIdentifier
public IFuture<IComponentIdentifier> getRemoteComponentIdentifier()
Get the remote component identifier.- Returns:
- The remote identifier.
-
getConnectionState
protected IFuture<IProxyAgentService.State> getConnectionState()
Get the connection state.
-
isConnected
public boolean isConnected()
Get the connected.- Returns:
- the connected.
-
-