public class RequiredServiceNode extends AbstractSwingTreeNode
Modifier and Type | Class and Description |
---|---|
protected static class |
RequiredServiceNode.ReqInfo |
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IExternalAccess |
ea
The external access.
|
protected java.lang.String |
nid
The node id.
|
protected RequiredServiceProperties |
propcomp
The properties component (if any).
|
tree
Constructor and Description |
---|
RequiredServiceNode(ISwingTreeNode parent,
AsyncSwingTreeModel model,
javax.swing.JTree tree,
jadex.bridge.service.RequiredServiceInfo info,
java.lang.String nid,
jadex.bridge.IExternalAccess ea)
Create a new service container node.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getIcon()
Get the icon as byte[] for a node.
|
java.lang.Object |
getId()
Get the id used for lookup.
|
javax.swing.JComponent |
getPropertiesComponent()
Get or create a component displaying the node properties.
|
jadex.bridge.service.RequiredServiceInfo |
getServiceInfo()
Get the service info.
|
javax.swing.Icon |
getSwingIcon()
Get the icon for a node.
|
java.lang.String |
getTooltipText()
Get tooltip text.
|
boolean |
hasProperties()
True, if the node has properties that can be displayed.
|
protected void |
searchChildren()
Asynchronously search for children.
|
java.lang.String |
toString()
A string representation.
|
addChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, isLeaf, refresh, removeChild, setChildren
checkChildren, dispose, hashCode, removeAllChildren, setParent
protected final java.lang.String nid
protected RequiredServiceProperties propcomp
protected jadex.bridge.IExternalAccess ea
public RequiredServiceNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, jadex.bridge.service.RequiredServiceInfo info, java.lang.String nid, jadex.bridge.IExternalAccess ea)
public jadex.bridge.service.RequiredServiceInfo getServiceInfo()
public java.lang.Object getId()
public byte[] getIcon()
getIcon
in interface jadex.base.gui.asynctree.ITreeNode
getIcon
in class jadex.base.gui.asynctree.AbstractTreeNode
public javax.swing.Icon getSwingIcon()
getSwingIcon
in interface ISwingTreeNode
getSwingIcon
in class AbstractSwingTreeNode
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTooltipText()
getTooltipText
in interface jadex.base.gui.asynctree.ITreeNode
getTooltipText
in class jadex.base.gui.asynctree.AbstractTreeNode
public boolean hasProperties()
hasProperties
in interface jadex.base.gui.asynctree.ITreeNode
hasProperties
in class jadex.base.gui.asynctree.AbstractTreeNode
protected void searchChildren()
searchChildren
in class jadex.base.gui.asynctree.AbstractTreeNode
public javax.swing.JComponent getPropertiesComponent()
getPropertiesComponent
in interface ISwingTreeNode
getPropertiesComponent
in class AbstractSwingTreeNode