Class CmsChoiceMenuEntryBean

java.lang.Object
org.opencms.acacia.client.CmsChoiceMenuEntryBean

public class CmsChoiceMenuEntryBean extends Object
A bean which contains the data for a choice menu entry.

  • Field Details

  • Constructor Details

    • CmsChoiceMenuEntryBean

      public CmsChoiceMenuEntryBean(String pathComponent)
      Creates a new choice menu entry bean.
      Parameters:
      pathComponent - the path component of the choice (attribute id)
  • Method Details

    • addChild

      public CmsChoiceMenuEntryBean addChild(String pathComponent)
      Adds a new child entry to this bean and returns it.

      Parameters:
      pathComponent - the path component of the child
      Returns:
      the new child
    • getChildren

      Gets the list of children of this entry.

      Returns:
      the list of children
    • getHelp

      public String getHelp(I_CmsWidgetService widgetService)
      Gets the help text for the menu entry.

      Parameters:
      widgetService - the widget service to ask for labels
      Returns:
      the help text
    • getLabel

      public String getLabel(I_CmsWidgetService widgetService)
      Gets the label for the menu entry.

      Parameters:
      widgetService - the widget service to ask for label texts
      Returns:
      the entry label
    • getParent

      Gets the parent entry of this entry.

      Returns:
      the parent entry
    • getPath

      public List<String> getPath()
      Gets the complete path of this entry, which is a list of attribute ids.

      Returns:
      the path of this entry
    • getPathComponent

      Gets the path component of this entry.

      Returns:
      the path component
    • isLeaf

      public boolean isLeaf()
      Returns true if this entry has no children.

      Returns:
      true if this entry has no children