Class CmsAdminMenuItem

java.lang.Object
org.opencms.workplace.administration.CmsAdminMenuItem
Direct Known Subclasses:
CmsAdminContextHelpMenuItem

public class CmsAdminMenuItem extends Object
Html icon button implementation that generates the required html code for a menu item.

Since:
6.0.0
  • Constructor Details

    • CmsAdminMenuItem

      public CmsAdminMenuItem(String id, String name, String iconPath, String link, String helpText, boolean enabled, String target)
      Default Constructor.

      Parameters:
      id - a unique id
      name - the name of the item
      iconPath - the icon to display
      link - the link to open when selected
      helpText - the help text to display
      enabled - if enabled or not
      target - the target frame to open the link into
  • Method Details

    • getHelpText

      public String getHelpText()
      Returns the help text.

      Returns:
      the help text
    • getIconPath

      public String getIconPath()
      Returns the path to the icon.

      Returns:
      the path to the icon
    • getId

      public String getId()
      Returns the dhtml unique id.

      Returns:
      the dhtml unique id
    • getLink

      public String getLink()
      Returns the link.

      Returns:
      the link
    • getName

      public String getName()
      Returns the display name.

      Returns:
      the name
    • getTarget

      public String getTarget()
      Returns the target.

      Returns:
      the target
    • isEnabled

      public boolean isEnabled()
      Returns if enabled or disabled.

      Returns:
      if enabled or disabled
    • itemHtml

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

      Parameters:
      wp - the workplace
      Returns:
      html code