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:
java.io.Serializable
public class ModelMenuItem extends ModelWidget
Models the <menu-item> element.- See Also:
widget-menu.xsd
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelMenuItem.MenuLink
-
Field Summary
Fields Modifier and Type Field Description protected ModelMenuItem.MenuLink
link
static java.lang.String
module
-
Fields inherited from class org.apache.ofbiz.widget.model.ModelWidget
enableBoundaryCommentsParam
-
-
Constructor Summary
Constructors Constructor Description ModelMenuItem(org.w3c.dom.Element menuItemElement, ModelMenu modelMenu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelWidgetVisitor visitor)
java.util.List<ModelAction>
getActions()
java.lang.String
getAlign()
java.lang.String
getAlignStyle()
FlexibleStringExpander
getAssociatedContentId()
java.lang.String
getAssociatedContentId(java.util.Map<java.lang.String,java.lang.Object> context)
java.lang.String
getCellWidth()
ModelMenuCondition
getCondition()
java.lang.String
getDisabledTitleStyle()
java.lang.String
getDisableIfEmpty()
java.lang.String
getEntityName()
java.lang.Boolean
getHideIfSelected()
ModelMenuItem.MenuLink
getLink()
java.util.List<ModelMenuItem>
getMenuItemList()
ModelMenu
getModelMenu()
java.lang.String
getName()
Returns the widget's name.java.lang.String
getOverrideName()
ModelMenuItem
getParentMenuItem()
FlexibleStringExpander
getParentPortalPageId()
java.lang.String
getParentPortalPageId(java.util.Map<java.lang.String,java.lang.Object> context)
int
getPosition()
java.lang.String
getSelectedStyle()
java.lang.String
getSubMenu()
FlexibleStringExpander
getTitle()
java.lang.String
getTitle(java.util.Map<java.lang.String,java.lang.Object> context)
java.lang.String
getTitleStyle()
FlexibleStringExpander
getTooltip()
java.lang.String
getTooltip(java.util.Map<java.lang.String,java.lang.Object> context)
java.lang.String
getTooltipStyle()
java.lang.String
getWidgetStyle()
boolean
isSelected(java.util.Map<java.lang.String,java.lang.Object> context)
ModelMenuItem
mergeOverrideModelMenuItem(ModelMenuItem overrideMenuItem)
void
renderMenuItemString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, MenuStringRenderer menuStringRenderer)
boolean
shouldBeRendered(java.util.Map<java.lang.String,java.lang.Object> context)
-
Methods inherited from class org.apache.ofbiz.widget.model.ModelWidget
getBoundaryCommentName, getStartColumn, getStartLine, getSystemId, toString, widgetBoundaryCommentsEnabled
-
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
link
protected final ModelMenuItem.MenuLink link
-
-
Constructor Detail
-
ModelMenuItem
public ModelMenuItem(org.w3c.dom.Element menuItemElement, ModelMenu modelMenu)
-
-
Method Detail
-
accept
public void accept(ModelWidgetVisitor visitor) throws java.lang.Exception
- Specified by:
accept
in classModelWidget
- Throws:
java.lang.Exception
-
getActions
public java.util.List<ModelAction> getActions()
-
getAlign
public java.lang.String getAlign()
-
getAlignStyle
public java.lang.String getAlignStyle()
-
getAssociatedContentId
public FlexibleStringExpander getAssociatedContentId()
-
getAssociatedContentId
public java.lang.String getAssociatedContentId(java.util.Map<java.lang.String,java.lang.Object> context)
-
getCellWidth
public java.lang.String getCellWidth()
-
getCondition
public ModelMenuCondition getCondition()
-
getDisabledTitleStyle
public java.lang.String getDisabledTitleStyle()
-
getDisableIfEmpty
public java.lang.String getDisableIfEmpty()
-
getEntityName
public java.lang.String getEntityName()
-
getHideIfSelected
public java.lang.Boolean getHideIfSelected()
-
getLink
public ModelMenuItem.MenuLink getLink()
-
getMenuItemList
public java.util.List<ModelMenuItem> getMenuItemList()
-
getModelMenu
public ModelMenu getModelMenu()
-
getName
public java.lang.String getName()
Description copied from class:ModelWidget
Returns the widget's name.- Overrides:
getName
in classModelWidget
- Returns:
- Widget's name
-
getOverrideName
public java.lang.String getOverrideName()
-
getParentMenuItem
public ModelMenuItem getParentMenuItem()
-
getParentPortalPageId
public FlexibleStringExpander getParentPortalPageId()
-
getParentPortalPageId
public java.lang.String getParentPortalPageId(java.util.Map<java.lang.String,java.lang.Object> context)
-
getPosition
public int getPosition()
-
getSelectedStyle
public java.lang.String getSelectedStyle()
-
getSubMenu
public java.lang.String getSubMenu()
-
getTitle
public FlexibleStringExpander getTitle()
-
getTitle
public java.lang.String getTitle(java.util.Map<java.lang.String,java.lang.Object> context)
-
getTitleStyle
public java.lang.String getTitleStyle()
-
getTooltip
public FlexibleStringExpander getTooltip()
-
getTooltip
public java.lang.String getTooltip(java.util.Map<java.lang.String,java.lang.Object> context)
-
getTooltipStyle
public java.lang.String getTooltipStyle()
-
getWidgetStyle
public java.lang.String getWidgetStyle()
-
isSelected
public boolean isSelected(java.util.Map<java.lang.String,java.lang.Object> context)
-
mergeOverrideModelMenuItem
public ModelMenuItem mergeOverrideModelMenuItem(ModelMenuItem overrideMenuItem)
-
renderMenuItemString
public void renderMenuItemString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, MenuStringRenderer menuStringRenderer) throws java.io.IOException
- Throws:
java.io.IOException
-
shouldBeRendered
public boolean shouldBeRendered(java.util.Map<java.lang.String,java.lang.Object> context)
-
-