|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ozziefix.jlwizard.demo.MaybeEmployeeAction
public class MaybeEmployeeAction
WizardAction for demonstrating branching in a Wizard.
The PageForward this WizardAction returns depends on the value of the employee property of the DemoWizardModel.
Constructor Summary | |
---|---|
MaybeEmployeeAction(java.lang.String employeeForward,
java.lang.String noEmployeeForward)
Creates a new MaybeEmployeeAction object. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
the description of this action |
java.lang.String |
getTitle()
the title of this action. |
PageForward |
perform(Wizard wizard,
WizardModel model)
perform the action. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaybeEmployeeAction(java.lang.String employeeForward, java.lang.String noEmployeeForward)
employeeForward
- the identifier of the forward when employee =
truenoEmployeeForward
- the identifier of the forward when employee =
falseMethod Detail |
---|
public java.lang.String getDescription()
WizardAction
the description of this action
getDescription
in interface WizardAction
WizardAction.getDescription()
public java.lang.String getTitle()
WizardAction
the title of this action. This could used for the button text on the WizardNavigator.
getTitle
in interface WizardAction
WizardAction.getTitle()
public PageForward perform(Wizard wizard, WizardModel model) throws WizardException
WizardAction
perform the action. This should only be called from the perform() method of the Wizard.
perform
in interface WizardAction
wizard
- the wizard that called this actionmodel
- the wizard model this action will work with
WizardException
- when something went wrong while performing the
actionWizardAction.perform(com.ozziefix.jlwizard.Wizard,
com.ozziefix.jlwizard.WizardModel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |