Class CmsAdminMenuGroup

java.lang.Object
org.opencms.workplace.administration.CmsAdminMenuGroup

public class CmsAdminMenuGroup extends Object
Container for menu items that generates the necesary html code for a group of items.

Since:
6.0.0
  • Constructor Details

    • CmsAdminMenuGroup

      public CmsAdminMenuGroup(String id, String name)
      Default Constructor.

      Parameters:
      id - a unique id
      name - the name of the group
  • Method Details

    • addMenuItem

      public void addMenuItem(CmsAdminMenuItem item)
      Adds a menu item.

      Parameters:
      item - the item
      See Also:
      • CmsIdentifiableObjectContainer.addIdentifiableObject(String, Object)
    • addMenuItem

      public void addMenuItem(CmsAdminMenuItem item, float position)
      Adds a menu item at the given position.

      Parameters:
      item - the item
      position - the position
      See Also:
      • CmsIdentifiableObjectContainer.addIdentifiableObject(String, Object, float)
    • getId

      public String getId()
      Returns the dhtml unique id.

      Returns:
      the dhtml unique id
    • getMenuItems

      Returns a list of menu items.

      Returns:
      a list of CmsAdminMenuItems
    • getName

      public String getName()
      Returns the group name.

      Returns:
      the group name
    • groupHtml

      public String groupHtml(org.opencms.workplace.CmsWorkplace wp)
      Returns the necessary html code.

      Parameters:
      wp - the jsp page to write the code to
      Returns:
      html code