Package org.opencms.ui.actions
Class CmsDisplayAction
java.lang.Object
org.opencms.ui.actions.A_CmsWorkplaceAction
org.opencms.ui.actions.CmsDisplayAction
- All Implemented Interfaces:
I_CmsDefaultAction,I_CmsWorkplaceAction,I_CmsHasMenuItemVisibility
- Direct Known Subclasses:
CmsEditPageAction
The display action. Renders the selected resource.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe action id.static final StringThe name of the online version window.static final I_CmsHasMenuItemVisibilityThe action visibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(I_CmsDialogContext context) Executes the action.intgetDefaultActionRank(I_CmsDialogContext context) Returns the action rank, the highest ranked default action will be used.getId()The action id.protected StringReturns the workplace message bundle key of the action title.getVisibility(CmsObject cms, List<CmsResource> resources) Gets the visibility for the current resource and CMS context.Methods inherited from class org.opencms.ui.actions.A_CmsWorkplaceAction
getDialogTitle, getDialogTitleKey, getTitle, getVisibility, hasBlockingLocks, hasBlockingLocks, isActive, openDialog, openDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.ui.contextmenu.I_CmsHasMenuItemVisibility
getVisibilityMethods inherited from interface org.opencms.ui.actions.I_CmsWorkplaceAction
getTitle, isActive
-
Field Details
-
ONLINE_WINDOW_NAME
The name of the online version window.- See Also:
-
ACTION_ID
The action id.- See Also:
-
VISIBILITY
The action visibility.
-
-
Constructor Details
-
CmsDisplayAction
public CmsDisplayAction()
-
-
Method Details
-
executeAction
Description copied from interface:I_CmsWorkplaceActionExecutes the action.- Specified by:
executeActionin interfaceI_CmsWorkplaceAction- Parameters:
context- the current dialog context.- See Also:
-
getDefaultActionRank
Description copied from interface:I_CmsDefaultActionReturns the action rank, the highest ranked default action will be used.- Specified by:
getDefaultActionRankin interfaceI_CmsDefaultAction- Parameters:
context- the dialog context- Returns:
- the action rank
- See Also:
-
getId
Description copied from interface:I_CmsWorkplaceActionThe action id.- Specified by:
getIdin interfaceI_CmsWorkplaceAction- Returns:
- the action id
- See Also:
-
getVisibility
Description copied from interface:I_CmsHasMenuItemVisibilityGets the visibility for the current resource and CMS context.- Specified by:
getVisibilityin interfaceI_CmsHasMenuItemVisibility- Parameters:
cms- the CMS context to useresources- the list of resources to check- Returns:
- the visibility
- See Also:
-
getTitleKey
Description copied from class:A_CmsWorkplaceActionReturns the workplace message bundle key of the action title.- Specified by:
getTitleKeyin classA_CmsWorkplaceAction- Returns:
- the title message bundle key
- See Also:
-