Package org.opencms.ui.contextmenu
Interface I_CmsSimpleContextMenuEntry<T>
-
- Type Parameters:
T
- the item data type
- All Known Implementing Classes:
CmsSitesTable.EditEntry
,CmsSitesTable.ExportEntry
public interface I_CmsSimpleContextMenuEntry<T>
Interface for generic context menu entris.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
I_CmsSimpleContextMenuEntry.I_HasCssStyles
This interface allows special styles for certain entries.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executeAction(T context)
Executes the entry action.java.lang.String
getTitle(java.util.Locale locale)
Returns the entry title for the given locale.CmsMenuItemVisibilityMode
getVisibility(T context)
Returns the entry visibility matching the given item data.
-
-
-
Method Detail
-
executeAction
void executeAction(T context)
Executes the entry action.- Parameters:
context
- the item data
-
getTitle
java.lang.String getTitle(java.util.Locale locale)
Returns the entry title for the given locale.- Parameters:
locale
- the locale- Returns:
- the title
-
getVisibility
CmsMenuItemVisibilityMode getVisibility(T context)
Returns the entry visibility matching the given item data.- Parameters:
context
- the item data- Returns:
- the visibility mode
-
-