Class CmsChoiceMenuEntryBean


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

    • Constructor Detail

      • CmsChoiceMenuEntryBean

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

      • addChild

        public CmsChoiceMenuEntryBean addChild​(java.lang.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
      • getHelp

        public java.lang.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 java.lang.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
      • getPath

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

        Returns:
        the path of this entry
      • getPathComponent

        public java.lang.String 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