Class DefaultPageController
java.lang.Object
de.hybris.platform.cockpit.wizards.impl.DefaultPageController
- All Implemented Interfaces:
WizardPageController
- Direct Known Subclasses:
AssignColumnWizardController,AssignQueryPermissionsWizardController,AssignSavedQueryPermissionsWizardController,AssignWorkflowWizardController,CmsComponentController,CmsContentEditorRelatedTypeWizardController,CmsDecisionPageController,CmsPageController,CmsReferenceSelectorPageController,DefaultAdvancedSearchPageController,DefaultAdvancedSearchPageController,DefaultDecisionPageController,DefaultGenericItemMandatoryPageController,DefaultGenericTypeSelectorPageController,DefaultNavigationNodeWizardController,ResetConfigWizardController,UploadMediaPageController
This class was moved to ext/cockpit from productcockpit
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeBack(Wizard wizard, WizardPage page) This method is invoked before proceeding to the previous page.voidbeforeNext(Wizard wizard, WizardPage page) This method is invoked before proceeding to the next page.voidcancel(Wizard wizard, WizardPage page) This method is invoked when the cancel button is pressed.voiddone(Wizard wizard, WizardPage page) This method is invoked when the done button is pressed.protected booleanevaluateAttribute(String attribute, Wizard wizard) protected booleanevaluateTransition(Transition transition, Wizard wizard) getFirstPage(Wizard wizard) Returns the first page of the wizard.voidinitPage(Wizard wizard, WizardPage page) This method is invoked whenever a wizard page is created.next(Wizard wizard, WizardPage page) Returns for the specified wizard page the next page.previous(Wizard wizard, WizardPage page) Returns for the specified wizard page the previous page.voidsetTransitions(List<Transition> transitions) booleanvalidate(Wizard wizard, WizardPage page) This method is invoked before leaving a page.
-
Field Details
-
transitions
-
-
Constructor Details
-
DefaultPageController
public DefaultPageController()
-
-
Method Details
-
setTransitions
-
cancel
Description copied from interface:WizardPageControllerThis method is invoked when the cancel button is pressed. Can be used to cleanup stuff done by the wizard.- Specified by:
cancelin interfaceWizardPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page
-
done
Description copied from interface:WizardPageControllerThis method is invoked when the done button is pressed.- Specified by:
donein interfaceWizardPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page- Throws:
WizardConfirmationException
-
getFirstPage
Description copied from interface:WizardPageControllerReturns the first page of the wizard.- Specified by:
getFirstPagein interfaceWizardPageController
-
initPage
Description copied from interface:WizardPageControllerThis method is invoked whenever a wizard page is created. Implement it to do some preparations for your page.- Specified by:
initPagein interfaceWizardPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page
-
evaluateAttribute
-
evaluateTransition
-
next
Description copied from interface:WizardPageControllerReturns for the specified wizard page the next page. Should be implemented for complex wizard flow calculation.- Specified by:
nextin interfaceWizardPageController- Parameters:
wizard- the wizard which contains the pagespage- the current page- Returns:
- the next page
-
previous
Description copied from interface:WizardPageControllerReturns for the specified wizard page the previous page. Should be implemented for complex wizard flow calculation.- Specified by:
previousin interfaceWizardPageController- Parameters:
wizard- the wizard which contains the pagespage- the current page- Returns:
- the previous page
-
validate
Description copied from interface:WizardPageControllerThis method is invoked before leaving a page. Implement it to validate the input data.- Specified by:
validatein interfaceWizardPageController- Returns:
- true, if the page content is correct, false otherwise. If false is returned, the wizard will not proceed to the next page.
-
beforeBack
Description copied from interface:WizardPageControllerThis method is invoked before proceeding to the previous page.- Specified by:
beforeBackin interfaceWizardPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page
-
beforeNext
Description copied from interface:WizardPageControllerThis method is invoked before proceeding to the next page.- Specified by:
beforeNextin interfaceWizardPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page
-