Package jadex.base.gui.componenttree
Class NFPropertyNode
- java.lang.Object
-
- jadex.base.gui.asynctree.AbstractTreeNode
-
- jadex.base.gui.asynctree.AbstractSwingTreeNode
-
- jadex.base.gui.componenttree.NFPropertyNode
-
- All Implemented Interfaces:
ISwingTreeNode
,ITreeNode
public class NFPropertyNode extends AbstractSwingTreeNode
Node for a non functional property.
-
-
Field Summary
Fields Modifier and Type Field Description protected IExternalAccess
ea
The external access of the nfproperty provider.protected MethodInfo
mi
The method info.protected javax.swing.JComponent
propcomp
The properties panel.protected INFPropertyMetaInfo
propmi
The property meta info.protected RequiredServiceInfo
rinfo
The required service info.protected IServiceIdentifier
sid
The service identifier.-
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 NFPropertyNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, INFPropertyMetaInfo propmi, IExternalAccess ea, IServiceIdentifier sid, MethodInfo mi, RequiredServiceInfo rinfo)
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.Object
getId()
Get the id used for lookup.protected static java.lang.String
getId(java.lang.Object parentid, java.lang.String name)
Build the node id.INFPropertyMetaInfo
getMetaInfo()
Get the meta info.javax.swing.JComponent
getPropertiesComponent()
Get or create a component displaying the node properties.INFPropertyMetaInfo
getPropertyMetaInfo()
Get the meta 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 IFuture<java.lang.Void>
removeProperty()
Remove property from provider.protected void
searchChildren()
Asynchronously search for 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, getTree, isLeaf, refresh, removeChild, setChildren
-
Methods inherited from class jadex.base.gui.asynctree.AbstractTreeNode
checkChildren, dispose, hashCode, removeAllChildren, setParent
-
-
-
-
Field Detail
-
propmi
protected INFPropertyMetaInfo propmi
The property meta info.
-
propcomp
protected javax.swing.JComponent propcomp
The properties panel.
-
ea
protected IExternalAccess ea
The external access of the nfproperty provider.
-
sid
protected IServiceIdentifier sid
The service identifier.
-
mi
protected MethodInfo mi
The method info.
-
rinfo
protected RequiredServiceInfo rinfo
The required service info.
-
-
Constructor Detail
-
NFPropertyNode
public NFPropertyNode(ISwingTreeNode parent, AsyncSwingTreeModel model, javax.swing.JTree tree, INFPropertyMetaInfo propmi, IExternalAccess ea, IServiceIdentifier sid, MethodInfo mi, RequiredServiceInfo rinfo)
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
-
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
-
hasProperties
public boolean hasProperties()
True, if the node has properties that can be displayed.- Specified by:
hasProperties
in interfaceITreeNode
- Overrides:
hasProperties
in 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:
getPropertiesComponent
in interfaceISwingTreeNode
- Overrides:
getPropertiesComponent
in classAbstractSwingTreeNode
-
getMetaInfo
public INFPropertyMetaInfo getMetaInfo()
Get the meta info.
-
getId
protected static java.lang.String getId(java.lang.Object parentid, java.lang.String name)
Build the node id.
-
removeProperty
protected IFuture<java.lang.Void> removeProperty()
Remove property from provider.
-
getPropertyMetaInfo
public INFPropertyMetaInfo getPropertyMetaInfo()
Get the meta info.
-
-