Class CmsStaticPrefillPageHandler
java.lang.Object
org.opencms.ui.actions.prefillpage.CmsStaticPrefillPageHandler
- All Implemented Interfaces:
I_CmsPrefillPageHandler
Pre-fills the page by adding contents from a template page into a specific container of the page to fill.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(I_CmsDialogContext context) Execute the prefill action.booleanisExecutable(I_CmsDialogContext context) Checks if the action is executable in the provided context.
-
Constructor Details
-
CmsStaticPrefillPageHandler
public CmsStaticPrefillPageHandler()
-
-
Method Details
-
execute
Description copied from interface:I_CmsPrefillPageHandlerExecute the prefill action. It is assumed thatI_CmsPrefillPageHandler.isExecutable(I_CmsDialogContext)has yielded true for the provided context.- Specified by:
executein interfaceI_CmsPrefillPageHandler- Parameters:
context- the context in which the action is performed.- See Also:
-
isExecutable
Description copied from interface:I_CmsPrefillPageHandlerChecks if the action is executable in the provided context. It already is checked, that we are in the page editor and have only one resource in the context (the containerpage).- Specified by:
isExecutablein interfaceI_CmsPrefillPageHandler- Parameters:
context- the context in which the action shall be performed.- Returns:
trueiff the action is executable in the provided context.- See Also:
-