Class ModelTree

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

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

    • ModelTree

      public ModelTree(Element treeElement, String location)
  • Method Details

    • accept

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

      public String getBoundaryCommentName()
      Description copied from class: ModelWidget
      Returns the widget's name to be used in boundary comments. The default action is to return the widget's name. Derived classes can override this method to return a customized name.
      Overrides:
      getBoundaryCommentName in class ModelWidget
      Returns:
      Name to be used in boundary comments
    • getDefaultEntityName

      public String getDefaultEntityName()
      Gets default entity name.
      Returns:
      the default entity name
    • getDefaultPkName

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

      public String getExpandCollapseRequest(Map<String,Object> context)
      Gets expand collapse request.
      Parameters:
      context - the context
      Returns:
      the expand collapse request
    • getOpenDepth

      public int getOpenDepth()
      Gets open depth.
      Returns:
      the open depth
    • getPostTrailOpenDepth

      public int getPostTrailOpenDepth()
      Gets post trail open depth.
      Returns:
      the post trail open depth
    • getRenderStyle

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

      public String getRootNodeName()
      Gets root node name.
      Returns:
      the root node name
    • getTrailName

      public String getTrailName(Map<String,Object> context)
      Gets trail name.
      Parameters:
      context - the context
      Returns:
      the trail name
    • getWrapStyle

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

      public void renderTreeString(Appendable writer, Map<String,Object> context, TreeStringRenderer treeStringRenderer) throws GeneralException
      Renders this model.
      Parameters:
      writer -
      context -
      treeStringRenderer -
      Throws:
      GeneralException
    • getDefaultRenderStyle

      public String getDefaultRenderStyle()
      Gets default render style.
      Returns:
      the default render style
    • getDefaultWrapStyleExdr

      public FlexibleStringExpander getDefaultWrapStyleExdr()
      Gets default wrap style exdr.
      Returns:
      the default wrap style exdr
    • getExpandCollapseRequestExdr

      public FlexibleStringExpander getExpandCollapseRequestExdr()
      Gets expand collapse request exdr.
      Returns:
      the expand collapse request exdr
    • getForceChildCheck

      public boolean getForceChildCheck()
      Gets force child check.
      Returns:
      the force child check
    • getLocation

      public String getLocation()
      Gets location.
      Returns:
      the location
    • getNodeMap

      public Map<String,ModelTree.ModelNode> getNodeMap()
      Gets node map.
      Returns:
      the node map
    • getTrailNameExdr

      public FlexibleStringExpander getTrailNameExdr()
      Gets trail name exdr.
      Returns:
      the trail name exdr