Package jadex.base.gui.componenttree
Class ProvidedServiceInfoNode
- java.lang.Object
-
- jadex.base.gui.asynctree.AbstractTreeNode
-
- jadex.base.gui.asynctree.AbstractSwingTreeNode
-
- jadex.base.gui.componenttree.ProvidedServiceInfoNode
-
- All Implemented Interfaces:
ISwingTreeNode,ITreeNode
public class ProvidedServiceInfoNode extends AbstractSwingTreeNode
Node object representing a service.
-
-
Field Summary
Fields Modifier and Type Field Description protected IExternalAccesseaThe external access.protected IExternalAccessplatformeaThe platform external access.protected ProvidedServiceInfoPropertiespropcompThe properties component (if any).protected IServiceIdentifiersidThe service id.-
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 ProvidedServiceInfoNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, ProvidedServiceInfo service, IServiceIdentifier sid, IExternalAccess ea, IExternalAccess platformea)Create a new service container node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getIcon()Get the icon as byte[] for a node.java.lang.ObjectgetId()Get the id used for lookup.protected static java.lang.StringgetId(ISwingTreeNode parent, ProvidedServiceInfo service)Build the node id.javax.swing.JComponentgetPropertiesComponent()Get or create a component displaying the node properties.IServiceIdentifiergetServiceIdentifier()Get the sid.ProvidedServiceInfogetServiceInfo()Get the service.protected IFuture<java.lang.Class<?>>getServiceType()javax.swing.IcongetSwingIcon()Get the icon for a node.java.lang.StringgetTooltipText()Get tooltip text.booleanhasProperties()True, if the node has properties that can be displayed.protected voidsearchChildren()Asynchronously search for children.java.lang.StringtoString()A string representation.-
Methods inherited from class jadex.base.gui.asynctree.AbstractSwingTreeNode
addChild, addChild, equals, expandChildren, getCachedChildren, getChild, getChildCount, getChildren, getIndexOfChild, getModel, getParent, getTree, isLeaf, refresh, removeChild, setChildren
-
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNode
checkChildren, dispose, hashCode, removeAllChildren, setParent
-
-
-
-
Field Detail
-
sid
protected IServiceIdentifier sid
The service id.
-
propcomp
protected ProvidedServiceInfoProperties propcomp
The properties component (if any).
-
ea
protected IExternalAccess ea
The external access.
-
platformea
protected IExternalAccess platformea
The platform external access.
-
-
Constructor Detail
-
ProvidedServiceInfoNode
public ProvidedServiceInfoNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, ProvidedServiceInfo service, IServiceIdentifier sid, IExternalAccess ea, IExternalAccess platformea)
Create a new service container node.
-
-
Method Detail
-
getServiceInfo
public ProvidedServiceInfo getServiceInfo()
Get the service.
-
getServiceIdentifier
public IServiceIdentifier getServiceIdentifier()
Get the sid.- Returns:
- the sid.
-
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:
getIconin interfaceITreeNode- Specified by:
getIconin classAbstractTreeNode
-
getSwingIcon
public javax.swing.Icon getSwingIcon()
Get the icon for a node.- Specified by:
getSwingIconin interfaceISwingTreeNode- Specified by:
getSwingIconin classAbstractSwingTreeNode
-
searchChildren
protected void searchChildren()
Asynchronously search for children. Called once for each node. Should call setChildren() once children are found.- Specified by:
searchChildrenin classAbstractTreeNode
-
getServiceType
protected IFuture<java.lang.Class<?>> getServiceType()
-
toString
public java.lang.String toString()
A string representation.- Overrides:
toStringin classjava.lang.Object
-
getTooltipText
public java.lang.String getTooltipText()
Get tooltip text.- Specified by:
getTooltipTextin interfaceITreeNode- Specified by:
getTooltipTextin classAbstractTreeNode
-
hasProperties
public boolean hasProperties()
True, if the node has properties that can be displayed.- Specified by:
hasPropertiesin interfaceITreeNode- Overrides:
hasPropertiesin classAbstractTreeNode
-
getPropertiesComponent
public javax.swing.JComponent getPropertiesComponent()
Get or create a component displaying the node properties. Only to be called if hasProperties() is true;- Specified by:
getPropertiesComponentin interfaceISwingTreeNode- Overrides:
getPropertiesComponentin classAbstractSwingTreeNode
-
getId
protected static java.lang.String getId(ISwingTreeNode parent, ProvidedServiceInfo service)
Build the node id.
-
-