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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceThis interface allows special styles for certain entries. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(T context) Executes the entry action.Returns the entry title for the given locale.getVisibility(T context) Returns the entry visibility matching the given item data.
-
Method Details
-
executeAction
Executes the entry action.- Parameters:
context- the item data
-
getTitle
Returns the entry title for the given locale.- Parameters:
locale- the locale- Returns:
- the title
-
getVisibility
Returns the entry visibility matching the given item data.- Parameters:
context- the item data- Returns:
- the visibility mode
-