Class CmsAdminMenuItem
java.lang.Object
org.opencms.workplace.administration.CmsAdminMenuItem
- Direct Known Subclasses:
CmsAdminContextHelpMenuItem
Html icon button implementation that generates the
required html code for a menu item.
- Since:
- 6.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the help text.Returns the path to the icon.getId()
Returns the dhtml unique id.getLink()
Returns the link.getName()
Returns the display name.Returns the target.boolean
Returns if enabled or disabled.itemHtml
(org.opencms.workplace.CmsWorkplace wp) Returns the necessary html code.
-
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 idname
- the name of the itemiconPath
- the icon to displaylink
- the link to open when selectedhelpText
- the help text to displayenabled
- if enabled or nottarget
- the target frame to open the link into
-
-
Method Details
-
getHelpText
Returns the help text.- Returns:
- the help text
-
getIconPath
Returns the path to the icon.- Returns:
- the path to the icon
-
getId
Returns the dhtml unique id.- Returns:
- the dhtml unique id
-
getLink
Returns the link.- Returns:
- the link
-
getName
Returns the display name.- Returns:
- the name
-
getTarget
Returns the target.- Returns:
- the target
-
isEnabled
Returns if enabled or disabled.- Returns:
- if enabled or disabled
-
itemHtml
Returns the necessary html code.- Parameters:
wp
- the workplace- Returns:
- html code
-