Class ExpressionNode

java.lang.Object
org.eclnt.editor.tools.ExpressionNode

public abstract class ExpressionNode extends Object
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.
  • 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

      protected ExpressionNodeManager m_manager
    • m_parentNode

      protected ExpressionNode m_parentNode
    • m_childNodes

      protected List<ExpressionNode> m_childNodes
  • Constructor Details

  • Method Details

    • getParentNode

      public ExpressionNode getParentNode()
    • getChildNodes

      public List<ExpressionNode> getChildNodes()
    • getNodeType

      public abstract int getNodeType()
      Return a value defined by NODETYPE_* constants.
    • getExpression

      public abstract String getExpression()
      The full expression that this node represents. E.g. "#{aa.bb.cc}" or ".{aa.bb.cc}".
    • getText

      public abstract String getText()
      The text that is shown for this node.
    • loadChildNodes

      public abstract void loadChildNodes()
      This method is called prior to calling getChildNodes() by the Expression Explorer. you need to create the childe node instances and add them to m_childNodes. This method is called when the user toggles a node - at this point of time the next level of nodes is read.
    • getImage

      public String 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.