Package org.opencms.ui.dialogs.embedded
Class CmsDataViewAction
java.lang.Object
org.opencms.ui.dialogs.embedded.CmsDataViewAction
- All Implemented Interfaces:
I_CmsWorkplaceAction
,I_CmsHasMenuItemVisibility
Action for the data view dialog.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeAction
(I_CmsDialogContext context) Executes the action.getId()
The action id.Returns the localized action title.getVisibility
(CmsObject cms, List<CmsResource> resources) Gets the visibility for the current resource and CMS context.getVisibility
(I_CmsDialogContext context) Gets the visibility for the current dialog context.boolean
isActive
(I_CmsDialogContext context) Checks whether this action should be active in the given dialog context.
-
Constructor Details
-
CmsDataViewAction
public CmsDataViewAction()
-
-
Method Details
-
executeAction
Description copied from interface:I_CmsWorkplaceAction
Executes the action.- Specified by:
executeAction
in interfaceI_CmsWorkplaceAction
- Parameters:
context
- the current dialog context.- See Also:
-
getId
Description copied from interface:I_CmsWorkplaceAction
The action id.- Specified by:
getId
in interfaceI_CmsWorkplaceAction
- Returns:
- the action id
- See Also:
-
getTitle
Description copied from interface:I_CmsWorkplaceAction
Returns the localized action title.- Specified by:
getTitle
in interfaceI_CmsWorkplaceAction
- Parameters:
locale
- the user's workplace locale- Returns:
- the action title
- See Also:
-
getVisibility
Description copied from interface:I_CmsHasMenuItemVisibility
Gets the visibility for the current resource and CMS context.- Specified by:
getVisibility
in interfaceI_CmsHasMenuItemVisibility
- Parameters:
cms
- the CMS context to useresources
- the list of resources to check- Returns:
- the visibility
- See Also:
-
getVisibility
Description copied from interface:I_CmsHasMenuItemVisibility
Gets the visibility for the current dialog context.- Specified by:
getVisibility
in interfaceI_CmsHasMenuItemVisibility
- Parameters:
context
- the dialog context- Returns:
- the visibility
- See Also:
-
isActive
Description copied from interface:I_CmsWorkplaceAction
Checks whether this action should be active in the given dialog context.- Specified by:
isActive
in interfaceI_CmsWorkplaceAction
- Parameters:
context
- the dialog context- Returns:
true
if this action should be active in the given dialog context- See Also:
-