Package jadex.base.gui.componenttree
Class ServiceContainerNode
- java.lang.Object
-
- jadex.base.gui.asynctree.AbstractTreeNode
-
- jadex.base.gui.asynctree.AbstractSwingTreeNode
-
- jadex.base.gui.componenttree.ServiceContainerNode
-
- All Implemented Interfaces:
ISwingTreeNode
,ITreeNode
public class ServiceContainerNode extends AbstractSwingTreeNode
Node object representing a service container.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
broken
Flag to indicate a broken service container (i.e. remote lookup failed due to class not found).protected IExternalAccess
container
The service container.protected static javax.swing.UIDefaults
icons
The service container icon.static java.lang.String
NAME
The node name (used as id suffix and displayed in the tree).-
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 ServiceContainerNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, IExternalAccess container)
Create a new service container node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IExternalAccess
getContainer()
Get the container.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.protected void
searchChildren()
Asynchronously search for children.void
setBroken(boolean broken)
Set the broken flag.protected void
setChildren(java.util.List children)
Set the children.java.lang.String
toString()
A string representation.-
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNode
addChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getPropertiesComponent, getTree, isLeaf, refresh, removeChild
-
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
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
The node name (used as id suffix and displayed in the tree).- See Also:
- Constant Field Values
-
icons
protected static final javax.swing.UIDefaults icons
The service container icon.
-
container
protected IExternalAccess container
The service container.
-
broken
protected boolean broken
Flag to indicate a broken service container (i.e. remote lookup failed due to class not found).
-
-
Constructor Detail
-
ServiceContainerNode
public ServiceContainerNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, IExternalAccess container)
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
-
getContainer
public IExternalAccess getContainer()
Get the container.- Returns:
- The container.
-
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
protected void setChildren(java.util.List children)
Set the children.- Overrides:
setChildren
in classAbstractSwingTreeNode
-
setBroken
public void setBroken(boolean broken)
Set the broken flag.
-
-