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
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.server.ResourceThe item icon.protected StringThe label message key. -
Constructor Summary
ConstructorsConstructorDescriptionA_CmsMenuItem(String labelKey, com.vaadin.server.Resource icon) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.ui.ComponentgetItemComponent(Locale locale) Returns the item ui component.protected StringReturns 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_CmsMenuItemReturns the item ui component.- Specified by:
getItemComponentin 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
-