|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.presentation.views.jsp.entities.AbstractWizardStage
public abstract class AbstractWizardStage
A wizard stage base class. Implements all the necessary wizard logic, to help create the wizard base stages.
Field Summary | |
---|---|
protected pt.digitalis.utils.config.IConfigurations |
config
The configurations resource |
protected pt.digitalis.dif.controller.interfaces.IDIFContext |
context
The current stage context |
protected pt.digitalis.dif.dem.objects.parameters.errors.ParameterErrors |
errors
Injects the parameter error report |
Constructor Summary | |
---|---|
AbstractWizardStage()
|
Method Summary | |
---|---|
protected pt.digitalis.dif.dem.objects.ViewObject |
cancel(pt.digitalis.dif.controller.interfaces.IDIFContext context,
int currentStep)
Cancel operation execution method. |
protected boolean |
canFinish()
Validates custom rules for enabling the finish option. |
pt.digitalis.dif.dem.objects.ViewObject |
execute()
The stage execution logic method. |
protected abstract pt.digitalis.dif.dem.objects.ViewObject |
finish(pt.digitalis.dif.controller.interfaces.IDIFContext context,
int currentStep)
Finish wizard execution method. |
protected WizardStepItem |
getActiveStep()
|
protected WizardStepItem |
getStep(int step)
|
protected int |
getTotalSteps()
|
WizardDefinition |
getWizardDefinition()
|
protected boolean |
hasIndexStep()
|
protected abstract WizardDefinition |
initializeWizardDefinition(WizardDefinition def)
|
protected boolean |
isCurrentStepSubmit()
|
protected boolean |
isStepAccessible(int stepNumber)
Validates custom rules for displaying a given step as accessible. |
protected boolean |
isStepEnabled(int stepNumber)
Validates custom rules enabling a specific step. |
protected pt.digitalis.dif.dem.objects.ViewObject |
wizardStepEnter(pt.digitalis.dif.controller.interfaces.IDIFContext context,
int currentStep)
Should be implemented with the current wizard step execution logic. |
protected abstract pt.digitalis.dif.dem.objects.ViewObject |
wizardStepSubmit(pt.digitalis.dif.controller.interfaces.IDIFContext context,
int currentStep)
Should be implemented with the current wizard step execution logic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected pt.digitalis.utils.config.IConfigurations config
protected pt.digitalis.dif.controller.interfaces.IDIFContext context
protected pt.digitalis.dif.dem.objects.parameters.errors.ParameterErrors errors
Constructor Detail |
---|
public AbstractWizardStage()
Method Detail |
---|
protected pt.digitalis.dif.dem.objects.ViewObject cancel(pt.digitalis.dif.controller.interfaces.IDIFContext context, int currentStep)
context
- the current stage contextcurrentStep
- the wizards current execution step
protected boolean canFinish()
protected final boolean isCurrentStepSubmit()
public final pt.digitalis.dif.dem.objects.ViewObject execute()
protected abstract pt.digitalis.dif.dem.objects.ViewObject finish(pt.digitalis.dif.controller.interfaces.IDIFContext context, int currentStep)
context
- the current stage contextcurrentStep
- the wizards current execution step
protected final WizardStepItem getActiveStep()
protected final WizardStepItem getStep(int step)
step
- the desired step
protected final int getTotalSteps()
public final WizardDefinition getWizardDefinition()
protected final boolean hasIndexStep()
protected abstract WizardDefinition initializeWizardDefinition(WizardDefinition def)
def
- the WizardDefinition
object to initialize
protected boolean isStepAccessible(int stepNumber)
stepNumber
- the step to validate access to
protected boolean isStepEnabled(int stepNumber)
stepNumber
- the step to validate access to
protected pt.digitalis.dif.dem.objects.ViewObject wizardStepEnter(pt.digitalis.dif.controller.interfaces.IDIFContext context, int currentStep)
context
- the current stage contextcurrentStep
- the wizards current execution step
protected abstract pt.digitalis.dif.dem.objects.ViewObject wizardStepSubmit(pt.digitalis.dif.controller.interfaces.IDIFContext context, int currentStep)
context
- the current stage contextcurrentStep
- the wizards current execution step
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |