|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.javaprog.ui.wizard.DefaultWizardModel
public class DefaultWizardModel
Default implementation for WizardModel.
| Nested Class Summary | |
|---|---|
static class |
DefaultWizardModel.DummyStep
Step implementation used in dynamic wizard models. |
| Field Summary | |
|---|---|
protected int |
index
The index of the currently displayed step. |
protected EventListenerList |
listenerList
Manages the listeners registered with this model. |
protected List |
steps
Contains references to the actual 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()
Notifies the listeners that a certain step has been shown. |
protected void |
fireWizardCanceled()
Notifies the listeners that the wizard has been canceled. |
protected void |
fireWizardFinished()
Notifies the listeners that the wizard has been finished. |
protected void |
fireWizardModelChanged()
Notifies the wizard that the wizard model has been changed. |
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 List steps
steps(),
contains(Step),
getSteps(),
getStepCount()protected int index
getCurrentIndex()protected final EventListenerList listenerList
addWizardModelListener(WizardModelListener),
removeWizardModelListener(WizardModelListener)| Constructor Detail |
|---|
public DefaultWizardModel(Step[] s)
| Method Detail |
|---|
public void addWizardModelListener(WizardModelListener l)
WizardModel
addWizardModelListener in interface WizardModelpublic void removeWizardModelListener(WizardModelListener l)
WizardModel
removeWizardModelListener in interface WizardModelpublic void cancelWizard()
WizardModel
cancelWizard in interface WizardModelpublic void finishWizard()
WizardModel
finishWizard in interface WizardModelpublic Step getCurrentStep()
WizardModel
getCurrentStep in interface WizardModelpublic int getCurrentIndex()
WizardModel
getCurrentIndex in interface WizardModelpublic Step[] getSteps()
WizardModel
getSteps in interface WizardModelpublic int getStepCount()
WizardModel
getStepCount in interface WizardModelpublic Iterator steps()
public boolean contains(Step step)
WizardModel
contains in interface WizardModelpublic void goBack()
WizardModel
goBack in interface WizardModelpublic void goNext()
WizardModel
goNext in interface WizardModelprotected void fireStepShown()
protected void fireWizardCanceled()
protected void fireWizardFinished()
protected void fireWizardModelChanged()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||