Package org.opencms.ui.apps
Class A_CmsMenuItem
- java.lang.Object
-
- org.opencms.ui.apps.A_CmsMenuItem
-
- All Implemented Interfaces:
I_CmsMenuItem
public abstract class A_CmsMenuItem extends java.lang.Object implements I_CmsMenuItem
A workplace menu item.
-
-
Field Summary
Fields Modifier and Type Field Description protected com.vaadin.server.Resource
m_icon
The item icon.protected java.lang.String
m_labelKey
The label message key.
-
Constructor Summary
Constructors Constructor Description A_CmsMenuItem(java.lang.String labelKey, com.vaadin.server.Resource icon)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.ui.Component
getItemComponent(java.util.Locale locale)
Returns the item ui component.protected java.lang.String
getLabel(java.util.Locale locale)
Returns the label for the given locale.
-
-
-
Field Detail
-
m_icon
protected com.vaadin.server.Resource m_icon
The item icon.
-
m_labelKey
protected java.lang.String m_labelKey
The label message key.
-
-
Constructor Detail
-
A_CmsMenuItem
public A_CmsMenuItem(java.lang.String labelKey, com.vaadin.server.Resource icon)
Constructor.- Parameters:
labelKey
- the label message keyicon
- the icon
-
-
Method Detail
-
getItemComponent
public com.vaadin.ui.Component getItemComponent(java.util.Locale locale)
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:
I_CmsMenuItem.getItemComponent(java.util.Locale)
-
getLabel
protected java.lang.String getLabel(java.util.Locale locale)
Returns the label for the given locale.- Parameters:
locale
- the user locale- Returns:
- the label
-
-