|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.javaprog.ui.wizard.DefaultWizardModel
Default implementation for WizardModel.
| Nested Class Summary | |
static class |
DefaultWizardModel.DummyStep
Step implementation used in dynamic wizard models. |
| Field Summary | |
protected int |
index
|
protected EventListenerList |
listenerList
|
protected List |
steps
|
| Constructor Summary | |
DefaultWizardModel(Step[] s)
Creates a new wizard model from the given step array. |
|
| Method Summary | |
void |
addWizardModelListener(WizardModelListener l)
Adds a listener for the back, next and finish actions. |
void |
cancelWizard()
Cancels the wizard. |
boolean |
contains(Step step)
Returns whether the sequence contains the given step. |
void |
finishWizard()
Finishes the wizard if possible. |
protected void |
fireStepShown()
|
protected void |
fireWizardCanceled()
|
protected void |
fireWizardFinished()
|
protected void |
fireWizardModelChanged()
|
int |
getCurrentIndex()
Returns the index of the currently visible step in the sequence. |
Step |
getCurrentStep()
Returns the currently visible step. |
int |
getStepCount()
Returns the number of steps in this sequence. |
Step[] |
getSteps()
Returns the sequence of steps as a plain array. |
void |
goBack()
Requests that the previous step should be shown if possible. |
void |
goNext()
Requests that the next step should be shown if possible. |
void |
removeWizardModelListener(WizardModelListener l)
Removes a previously added listener. |
Iterator |
steps()
Provides an iterator for the step sequence. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int index
protected final EventListenerList listenerList
protected List steps
| Constructor Detail |
public DefaultWizardModel(Step[] s)
| Method Detail |
public void addWizardModelListener(WizardModelListener l)
WizardModel
addWizardModelListener in interface WizardModelpublic void cancelWizard()
WizardModel
cancelWizard in interface WizardModelpublic boolean contains(Step step)
WizardModel
contains in interface WizardModelpublic void finishWizard()
WizardModel
finishWizard in interface WizardModelprotected void fireStepShown()
protected void fireWizardCanceled()
protected void fireWizardFinished()
protected void fireWizardModelChanged()
public int getCurrentIndex()
WizardModel
getCurrentIndex in interface WizardModelpublic Step getCurrentStep()
WizardModel
getCurrentStep in interface WizardModelpublic int getStepCount()
WizardModel
getStepCount in interface WizardModelpublic Step[] getSteps()
WizardModel
getSteps in interface WizardModelpublic void goBack()
WizardModel
goBack in interface WizardModelpublic void goNext()
WizardModel
goNext in interface WizardModelpublic void removeWizardModelListener(WizardModelListener l)
WizardModel
removeWizardModelListener in interface WizardModelpublic Iterator steps()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||