Package org.eclnt.editor.tools
Class ExpressionNode
java.lang.Object
org.eclnt.editor.tools.ExpressionNode
Base class for nodes shown in the Expression Explorer tool. You may override
this class any time to attach further information to the node.
You also may override in order to change the image and text of the node.
You also may override in order to change the image and text of the node.
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ExpressionNode>
protected ExpressionNodeManager
protected ExpressionNode
static int
static int
static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
The full expression that this node represents.getImage()
You may specify a special image for this node - otherwise default images are used.abstract int
Return a value defined by NODETYPE_* constants.abstract String
getText()
The text that is shown for this node.abstract void
This method is called prior to callinggetChildNodes()
by the Expression Explorer. you need to create the childe node instances and add them tom_childNodes
.
-
Field Details
-
NODETYPE_EXPRESSIONFOLDER
public static int NODETYPE_EXPRESSIONFOLDER -
NODETYPE_PROPERTYLEAVE
public static int NODETYPE_PROPERTYLEAVE -
NODETYPE_ACTIONLISTENERLEAVE
public static int NODETYPE_ACTIONLISTENERLEAVE -
m_manager
-
m_parentNode
-
m_childNodes
-
-
Constructor Details
-
ExpressionNode
-
-
Method Details
-
getParentNode
-
getChildNodes
-
getNodeType
public abstract int getNodeType()Return a value defined by NODETYPE_* constants. -
getExpression
The full expression that this node represents. E.g. "#{aa.bb.cc}" or ".{aa.bb.cc}". -
getText
The text that is shown for this node. -
loadChildNodes
public abstract void loadChildNodes()This method is called prior to callinggetChildNodes()
by the Expression Explorer. you need to create the childe node instances and add them tom_childNodes
. This method is called when the user toggles a node - at this point of time the next level of nodes is read. -
getImage
You may specify a special image for this node - otherwise default images are used. Pay attention: the image must refer to the editor's web application - this is the one where images are loaded from by the tool environment. A valid image name e.g. is "/editor/images/icons/lightning.png". Check the corresponding directory of the editor web application in order to see what images are available.
-