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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(I_CmsDialogContext context) Execute the prefill action.boolean
isExecutable
(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_CmsPrefillPageHandler
Execute the prefill action. It is assumed thatI_CmsPrefillPageHandler.isExecutable(I_CmsDialogContext)
has yielded true for the provided context.- Specified by:
execute
in interfaceI_CmsPrefillPageHandler
- Parameters:
context
- the context in which the action is performed.- See Also:
-
isExecutable
Description copied from interface:I_CmsPrefillPageHandler
Checks 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:
isExecutable
in interfaceI_CmsPrefillPageHandler
- Parameters:
context
- the context in which the action shall be performed.- Returns:
true
iff the action is executable in the provided context.- See Also:
-