Class ModelTree.ModelNode

java.lang.Object
org.apache.ofbiz.widget.model.ModelWidget
org.apache.ofbiz.widget.model.ModelTree.ModelNode
All Implemented Interfaces:
Serializable
Enclosing class:
ModelTree

public static class ModelTree.ModelNode extends ModelWidget
Models the <node> element.
See Also:
  • Constructor Details

  • Method Details

    • accept

      public void accept(ModelWidgetVisitor visitor) throws Exception
      Specified by:
      accept in class ModelWidget
      Throws:
      Exception
    • getEntityName

      public String getEntityName()
      Gets entity name.
      Returns:
      the entity name
    • getEntryName

      public String getEntryName()
      Gets entry name.
      Returns:
      the entry name
    • getExpandCollapseStyle

      public String getExpandCollapseStyle()
      Gets expand collapse style.
      Returns:
      the expand collapse style
    • getModelTree

      public ModelTree getModelTree()
      Gets model tree.
      Returns:
      the model tree
    • getPkName

      public String getPkName(Map<String,Object> context)
      Gets pk name.
      Parameters:
      context - the context
      Returns:
      the pk name
    • getRenderStyle

      public String getRenderStyle()
      Gets render style.
      Returns:
      the render style
    • getWrapStyle

      public String getWrapStyle(Map<String,Object> context)
      Gets wrap style.
      Parameters:
      context - the context
      Returns:
      the wrap style
    • hasChildren

      public boolean hasChildren(Map<String,Object> context)
      Has children boolean.
      Parameters:
      context - the context
      Returns:
      the boolean
    • isExpandCollapse

      public boolean isExpandCollapse()
      Is expand collapse boolean.
      Returns:
      the boolean
    • isFollowTrail

      public boolean isFollowTrail()
      Is follow trail boolean.
      Returns:
      the boolean
    • isRootNode

      public boolean isRootNode()
      Is root node boolean.
      Returns:
      the boolean
    • renderNodeString

      public void renderNodeString(Appendable writer, Map<String,Object> context, TreeStringRenderer treeStringRenderer, int depth) throws IOException, GeneralException
      Render node string.
      Parameters:
      writer - the writer
      context - the context
      treeStringRenderer - the tree string renderer
      depth - the depth
      Throws:
      IOException - the io exception
      GeneralException - the general exception
    • showPeers

      public boolean showPeers(int currentDepth, Map<String,Object> context)
      Show peers boolean.
      Parameters:
      currentDepth - the current depth
      context - the context
      Returns:
      the boolean
    • getActions

      public List<ModelAction> getActions()
      Gets actions.
      Returns:
      the actions
    • getCondition

      public ModelTreeCondition getCondition()
      Gets condition.
      Returns:
      the condition
    • getLabel

      public ModelTree.ModelNode.Label getLabel()
      Gets label.
      Returns:
      the label
    • getLink

      public ModelTree.ModelNode.Link getLink()
      Gets link.
      Returns:
      the link
    • getPkName

      public String getPkName()
      Gets pk name.
      Returns:
      the pk name
    • getScreenLocationExdr

      public FlexibleStringExpander getScreenLocationExdr()
      Gets screen location exdr.
      Returns:
      the screen location exdr
    • getScreenNameExdr

      public FlexibleStringExpander getScreenNameExdr()
      Gets screen name exdr.
      Returns:
      the screen name exdr
    • getShareScope

      public String getShareScope()
      Gets share scope.
      Returns:
      the share scope
    • getSubNodeList

      public List<ModelTree.ModelNode.ModelSubNode> getSubNodeList()
      Gets sub node list.
      Returns:
      the sub node list
    • getWrapStyleExdr

      public FlexibleStringExpander getWrapStyleExdr()
      Gets wrap style exdr.
      Returns:
      the wrap style exdr