Package org.apache.ofbiz.widget.model
Class ModelMenuItem
java.lang.Object
org.apache.ofbiz.widget.model.ModelWidget
org.apache.ofbiz.widget.model.ModelMenuItem
- All Implemented Interfaces:
Serializable
Models the <menu-item> element.
- See Also:
-
widget-menu.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
ConstructorDescriptionModelMenuItem
(ModelMenuItem originMenuItem, ModelMenu modelMenu, ModelMenuItem parentMenuItem) ModelMenuItem
(Element menuItemElement, ModelMenu modelMenu) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelWidgetVisitor visitor) Gets actions.getAlign()
Gets align.Gets align style.Gets associated content id.getAssociatedContentId
(Map<String, Object> context) Gets associated content id.Gets cell width.Gets condition.Gets disabled title style.Gets disable if empty.Gets entity name.Gets hide if selected.getLink()
Gets link.Gets menu item list.Gets model menu.getName()
Returns the widget's name.Gets override name.Gets parent menu item.Gets parent portal page id.getParentPortalPageId
(Map<String, Object> context) Gets parent portal page id.int
Gets position.Gets selected style.Gets sub menu.getTitle()
Gets title.Gets title.Gets title style.Gets tooltip.getTooltip
(Map<String, Object> context) Gets tooltip.Gets tooltip style.Gets widget style.boolean
isSelected
(Map<String, Object> context) Is selected boolean.mergeOverrideModelMenuItem
(ModelMenuItem overrideMenuItem) Merge override model menu item model menu item.void
renderMenuItemString
(Appendable writer, Map<String, Object> context, MenuStringRenderer menuStringRenderer) Render menu item string.boolean
shouldBeRendered
(Map<String, Object> context) Should be rendered boolean.Methods inherited from class org.apache.ofbiz.widget.model.ModelWidget
getBoundaryCommentName, getStartColumn, getStartLine, getSystemId, toString, widgetBoundaryCommentsEnabled, widgetNamedBorderType
-
Constructor Details
-
ModelMenuItem
-
ModelMenuItem
public ModelMenuItem(ModelMenuItem originMenuItem, ModelMenu modelMenu, ModelMenuItem parentMenuItem)
-
-
Method Details
-
accept
- Specified by:
accept
in classModelWidget
- Throws:
Exception
-
getActions
Gets actions.- Returns:
- the actions
-
getAlign
Gets align.- Returns:
- the align
-
getAlignStyle
Gets align style.- Returns:
- the align style
-
getAssociatedContentId
Gets associated content id.- Returns:
- the associated content id
-
getAssociatedContentId
Gets associated content id.- Parameters:
context
- the context- Returns:
- the associated content id
-
getCellWidth
Gets cell width.- Returns:
- the cell width
-
getCondition
Gets condition.- Returns:
- the condition
-
getDisabledTitleStyle
Gets disabled title style.- Returns:
- the disabled title style
-
getDisableIfEmpty
Gets disable if empty.- Returns:
- the disable if empty
-
getEntityName
Gets entity name.- Returns:
- the entity name
-
getHideIfSelected
Gets hide if selected.- Returns:
- the hide if selected
-
getLink
Gets link.- Returns:
- the link
-
getMenuItemList
Gets menu item list.- Returns:
- the menu item list
-
getModelMenu
Gets model menu.- Returns:
- the model menu
-
getName
Description copied from class:ModelWidget
Returns the widget's name.- Overrides:
getName
in classModelWidget
- Returns:
- Widget's name
-
getOverrideName
Gets override name.- Returns:
- the override name
-
getParentMenuItem
Gets parent menu item.- Returns:
- the parent menu item
-
getParentPortalPageId
Gets parent portal page id.- Returns:
- the parent portal page id
-
getParentPortalPageId
Gets parent portal page id.- Parameters:
context
- the context- Returns:
- the parent portal page id
-
getPosition
public int getPosition()Gets position.- Returns:
- the position
-
getSelectedStyle
Gets selected style.- Returns:
- the selected style
-
getSubMenu
Gets sub menu.- Returns:
- the sub menu
-
getTitle
Gets title.- Returns:
- the title
-
getTitle
Gets title.- Parameters:
context
- the context- Returns:
- the title
-
getTitleStyle
Gets title style.- Returns:
- the title style
-
getTooltip
Gets tooltip.- Returns:
- the tooltip
-
getTooltip
Gets tooltip.- Parameters:
context
- the context- Returns:
- the tooltip
-
getTooltipStyle
Gets tooltip style.- Returns:
- the tooltip style
-
getWidgetStyle
Gets widget style.- Returns:
- the widget style
-
isSelected
Is selected boolean.- Parameters:
context
- the context- Returns:
- the boolean
-
mergeOverrideModelMenuItem
Merge override model menu item model menu item.- Parameters:
overrideMenuItem
- the override menu item- Returns:
- the model menu item
-
renderMenuItemString
public void renderMenuItemString(Appendable writer, Map<String, Object> context, MenuStringRenderer menuStringRenderer) throws IOExceptionRender menu item string.- Parameters:
writer
- the writercontext
- the contextmenuStringRenderer
- the menu string renderer- Throws:
IOException
- the io exception
-
shouldBeRendered
Should be rendered boolean.- Parameters:
context
- the context- Returns:
- the boolean
-