Class ModelMenuItem

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

public class ModelMenuItem extends ModelWidget
Models the <menu-item> element.
See Also:
  • Constructor Details

  • Method Details

    • accept

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

      public List<ModelAction> getActions()
      Gets actions.
      Returns:
      the actions
    • getAlign

      public String getAlign()
      Gets align.
      Returns:
      the align
    • getAlignStyle

      public String getAlignStyle()
      Gets align style.
      Returns:
      the align style
    • getAssociatedContentId

      public FlexibleStringExpander getAssociatedContentId()
      Gets associated content id.
      Returns:
      the associated content id
    • getAssociatedContentId

      public String getAssociatedContentId(Map<String,Object> context)
      Gets associated content id.
      Parameters:
      context - the context
      Returns:
      the associated content id
    • getCellWidth

      public String getCellWidth()
      Gets cell width.
      Returns:
      the cell width
    • getCondition

      public ModelMenuCondition getCondition()
      Gets condition.
      Returns:
      the condition
    • getDisabledTitleStyle

      public String getDisabledTitleStyle()
      Gets disabled title style.
      Returns:
      the disabled title style
    • getDisableIfEmpty

      public String getDisableIfEmpty()
      Gets disable if empty.
      Returns:
      the disable if empty
    • getEntityName

      public String getEntityName()
      Gets entity name.
      Returns:
      the entity name
    • getHideIfSelected

      public Boolean getHideIfSelected()
      Gets hide if selected.
      Returns:
      the hide if selected
    • getLink

      public ModelMenuItem.MenuLink getLink()
      Gets link.
      Returns:
      the link
    • getMenuItemList

      public List<ModelMenuItem> getMenuItemList()
      Gets menu item list.
      Returns:
      the menu item list
    • getModelMenu

      public ModelMenu getModelMenu()
      Gets model menu.
      Returns:
      the model menu
    • getName

      public String getName()
      Description copied from class: ModelWidget
      Returns the widget's name.
      Overrides:
      getName in class ModelWidget
      Returns:
      Widget's name
    • getOverrideName

      public String getOverrideName()
      Gets override name.
      Returns:
      the override name
    • getParentMenuItem

      public ModelMenuItem getParentMenuItem()
      Gets parent menu item.
      Returns:
      the parent menu item
    • getParentPortalPageId

      public FlexibleStringExpander getParentPortalPageId()
      Gets parent portal page id.
      Returns:
      the parent portal page id
    • getParentPortalPageId

      public String getParentPortalPageId(Map<String,Object> context)
      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

      public String getSelectedStyle()
      Gets selected style.
      Returns:
      the selected style
    • getSubMenu

      public String getSubMenu()
      Gets sub menu.
      Returns:
      the sub menu
    • getTitle

      public FlexibleStringExpander getTitle()
      Gets title.
      Returns:
      the title
    • getTitle

      public String getTitle(Map<String,Object> context)
      Gets title.
      Parameters:
      context - the context
      Returns:
      the title
    • getTitleStyle

      public String getTitleStyle()
      Gets title style.
      Returns:
      the title style
    • getTooltip

      public FlexibleStringExpander getTooltip()
      Gets tooltip.
      Returns:
      the tooltip
    • getTooltip

      public String getTooltip(Map<String,Object> context)
      Gets tooltip.
      Parameters:
      context - the context
      Returns:
      the tooltip
    • getTooltipStyle

      public String getTooltipStyle()
      Gets tooltip style.
      Returns:
      the tooltip style
    • getWidgetStyle

      public String getWidgetStyle()
      Gets widget style.
      Returns:
      the widget style
    • isSelected

      public boolean isSelected(Map<String,Object> context)
      Is selected boolean.
      Parameters:
      context - the context
      Returns:
      the boolean
    • mergeOverrideModelMenuItem

      public ModelMenuItem mergeOverrideModelMenuItem(ModelMenuItem overrideMenuItem)
      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 IOException
      Render menu item string.
      Parameters:
      writer - the writer
      context - the context
      menuStringRenderer - the menu string renderer
      Throws:
      IOException - the io exception
    • shouldBeRendered

      public boolean shouldBeRendered(Map<String,Object> context)
      Should be rendered boolean.
      Parameters:
      context - the context
      Returns:
      the boolean