Package org.apache.ofbiz.widget.model
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
Models the <node> element.
- See Also:
-
widget-tree.xsd
- Serialized Form
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Models the <image> element.static final class
Models the <label> element.static class
Models the <link> element.static class
Models the <sub-node> element.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) Gets actions.Gets condition.Gets entity name.Gets entry name.Gets expand collapse style.getLabel()
Gets label.getLink()
Gets link.Gets model tree.Gets pk name.Gets pk name.Gets render style.Gets screen location exdr.Gets screen name exdr.Gets share scope.Gets sub node list.getWrapStyle
(Map<String, Object> context) Gets wrap style.Gets wrap style exdr.boolean
hasChildren
(Map<String, Object> context) Has children boolean.boolean
Is expand collapse boolean.boolean
Is follow trail boolean.boolean
Is root node boolean.void
renderNodeString
(Appendable writer, Map<String, Object> context, TreeStringRenderer treeStringRenderer, int depth) Render node string.boolean
Show peers boolean.Methods inherited from class org.apache.ofbiz.widget.model.ModelWidget
getBoundaryCommentName, getName, getStartColumn, getStartLine, getSystemId, toString, widgetBoundaryCommentsEnabled, widgetNamedBorderType
-
Constructor Details
-
ModelNode
-
-
Method Details
-
accept
- Specified by:
accept
in classModelWidget
- Throws:
Exception
-
getEntityName
Gets entity name.- Returns:
- the entity name
-
getEntryName
Gets entry name.- Returns:
- the entry name
-
getExpandCollapseStyle
Gets expand collapse style.- Returns:
- the expand collapse style
-
getModelTree
Gets model tree.- Returns:
- the model tree
-
getPkName
Gets pk name.- Parameters:
context
- the context- Returns:
- the pk name
-
getRenderStyle
Gets render style.- Returns:
- the render style
-
getWrapStyle
Gets wrap style.- Parameters:
context
- the context- Returns:
- the wrap style
-
hasChildren
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, GeneralExceptionRender node string.- Parameters:
writer
- the writercontext
- the contexttreeStringRenderer
- the tree string rendererdepth
- the depth- Throws:
IOException
- the io exceptionGeneralException
- the general exception
-
showPeers
Show peers boolean.- Parameters:
currentDepth
- the current depthcontext
- the context- Returns:
- the boolean
-
getActions
Gets actions.- Returns:
- the actions
-
getCondition
Gets condition.- Returns:
- the condition
-
getLabel
Gets label.- Returns:
- the label
-
getLink
Gets link.- Returns:
- the link
-
getPkName
Gets pk name.- Returns:
- the pk name
-
getScreenLocationExdr
Gets screen location exdr.- Returns:
- the screen location exdr
-
getScreenNameExdr
Gets screen name exdr.- Returns:
- the screen name exdr
-
getSubNodeList
Gets sub node list.- Returns:
- the sub node list
-
getWrapStyleExdr
Gets wrap style exdr.- Returns:
- the wrap style exdr
-