|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.bean.Bean
net.sf.doolin.gui.wizard.state.WizardState<B>
B - Type of bean for the wizardpublic class WizardState<B>
Definition of the current state of a wizard.
| Field Summary | |
|---|---|
static String |
CURRENT_VIEW
Property name for the current view: "currentView" |
| Constructor Summary | |
|---|---|
WizardState(B model,
WizardRules<B> wizardRules,
String initialView)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canFinish()
Checks if the wizard can be finished |
boolean |
canNext()
Checks if the wizard can be navigated to the next view. |
boolean |
canPrevious()
Checks if the wizard can be navigated to the previous view. |
void |
doNext(ActionContext actionContext)
Actually navigates to the next view in the wizard. |
void |
doPrevious(ActionContext actionContext)
Actually navigates to the previous view. |
String |
getCurrentView()
Gets the current view |
B |
getWizardModel()
Gets the bean for the wizard |
void |
setCurrentView(String currentView)
Navigates to the given view. |
| Methods inherited from class net.sf.doolin.bus.bean.Bean |
|---|
getBeanNotificationSupport, getParentBean, notify, setParentBean |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CURRENT_VIEW
| Constructor Detail |
|---|
public WizardState(B model,
WizardRules<B> wizardRules,
String initialView)
model - Wizard beanwizardRules - Wizard navigation rulesinitialView - Name of the initial view| Method Detail |
|---|
public boolean canFinish()
WizardRules.canFinish(String, Object)public boolean canNext()
WizardRules.getNext(String, Object) is called and "Next" is
enabled if the returned view is different than null.
WizardRules.getNext(String, Object)public boolean canPrevious()
public void doNext(ActionContext actionContext)
actionContext - Action contextWizardRules.getNext(String, Object),
setCurrentView(String)public void doPrevious(ActionContext actionContext)
actionContext - Action contextsetCurrentView(String)public String getCurrentView()
public B getWizardModel()
public void setCurrentView(String currentView)
currentView - View name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||