Class CmsStaticPrefillPageHandler
- java.lang.Object
-
- org.opencms.ui.actions.prefillpage.CmsStaticPrefillPageHandler
-
- All Implemented Interfaces:
I_CmsPrefillPageHandler
public class CmsStaticPrefillPageHandler extends java.lang.Object implements 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 Constructor Description CmsStaticPrefillPageHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(I_CmsDialogContext context)
Execute the prefill action.boolean
isExecutable(I_CmsDialogContext context)
Checks if the action is executable in the provided context.
-
-
-
Constructor Detail
-
CmsStaticPrefillPageHandler
public CmsStaticPrefillPageHandler()
-
-
Method Detail
-
execute
public void execute(I_CmsDialogContext context)
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:
I_CmsPrefillPageHandler.execute(org.opencms.ui.I_CmsDialogContext)
-
isExecutable
public boolean isExecutable(I_CmsDialogContext context)
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:
I_CmsPrefillPageHandler.isExecutable(org.opencms.ui.I_CmsDialogContext)
-
-