Package org.opencms.ui.apps
Class A_CmsMenuItem
java.lang.Object
org.opencms.ui.apps.A_CmsMenuItem
- All Implemented Interfaces:
I_CmsMenuItem
A workplace menu item.
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.server.Resource
The item icon.protected String
The label message key. -
Constructor Summary
ConstructorDescriptionA_CmsMenuItem
(String labelKey, com.vaadin.server.Resource icon) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.ui.Component
getItemComponent
(Locale locale) Returns the item ui component.protected String
Returns the label for the given locale.
-
Field Details
-
m_icon
The item icon. -
m_labelKey
The label message key.
-
-
Constructor Details
-
A_CmsMenuItem
Constructor.- Parameters:
labelKey
- the label message keyicon
- the icon
-
-
Method Details
-
getItemComponent
Description copied from interface:I_CmsMenuItem
Returns the item ui component.- Specified by:
getItemComponent
in interfaceI_CmsMenuItem
- Parameters:
locale
- the user locale- Returns:
- the component
- See Also:
-
getLabel
Returns the label for the given locale.- Parameters:
locale
- the user locale- Returns:
- the label
-