Package org.apache.ofbiz.widget.model
Class ModelTree
java.lang.Object
org.apache.ofbiz.widget.model.ModelWidget
org.apache.ofbiz.widget.model.ModelTree
- All Implemented Interfaces:
Serializable
Models the <tree> element.
- See Also:
-
widget-tree.xsd
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.ofbiz.widget.model.ModelWidget
ModelWidget.NamedBorderType
-
Field Summary
Fields inherited from class org.apache.ofbiz.widget.model.ModelWidget
ENABLE_BOUNDARY_COMMENTS_PARAM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelWidgetVisitor visitor) Returns the widget's name to be used in boundary comments.Gets default entity name.getDefaultPkName
(Map<String, Object> context) Gets default pk name.Gets default render style.Gets default wrap style exdr.getExpandCollapseRequest
(Map<String, Object> context) Gets expand collapse request.Gets expand collapse request exdr.boolean
Gets force child check.Gets location.Gets node map.int
Gets open depth.int
Gets post trail open depth.Gets render style.Gets root node name.getTrailName
(Map<String, Object> context) Gets trail name.Gets trail name exdr.getWrapStyle
(Map<String, Object> context) Gets wrap style.void
renderTreeString
(Appendable writer, Map<String, Object> context, TreeStringRenderer treeStringRenderer) Renders this model.Methods inherited from class org.apache.ofbiz.widget.model.ModelWidget
getName, getStartColumn, getStartLine, getSystemId, toString, widgetBoundaryCommentsEnabled, widgetNamedBorderType
-
Constructor Details
-
ModelTree
-
-
Method Details
-
accept
- Specified by:
accept
in classModelWidget
- Throws:
Exception
-
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 classModelWidget
- Returns:
- Name to be used in boundary comments
-
getDefaultEntityName
Gets default entity name.- Returns:
- the default entity name
-
getDefaultPkName
Gets default pk name.- Parameters:
context
- the context- Returns:
- the default pk name
-
getExpandCollapseRequest
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
Gets render style.- Returns:
- the render style
-
getRootNodeName
Gets root node name.- Returns:
- the root node name
-
getTrailName
Gets trail name.- Parameters:
context
- the context- Returns:
- the trail name
-
getWrapStyle
Gets wrap style.- Parameters:
context
- the context- Returns:
- the wrap style
-
renderTreeString
public void renderTreeString(Appendable writer, Map<String, Object> context, TreeStringRenderer treeStringRenderer) throws GeneralExceptionRenders this model.- Parameters:
writer
-context
-treeStringRenderer
-- Throws:
GeneralException
-
getDefaultRenderStyle
Gets default render style.- Returns:
- the default render style
-
getDefaultWrapStyleExdr
Gets default wrap style exdr.- Returns:
- the default wrap style exdr
-
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
Gets location.- Returns:
- the location
-
getNodeMap
Gets node map.- Returns:
- the node map
-
getTrailNameExdr
Gets trail name exdr.- Returns:
- the trail name exdr
-