This interface defines the Model for wizards. It provides various methods for determining
the steps of the wizard along with the current traversal state of the wizard. The
Wizard monitors the model using a
PropertyChangeListener so all changes to the model properties
must fire
PropertyChangeEvent s.
Most users should subclass either
StaticModel or
MultiPathModel . Implementors
of more specialized models should consider extending
AbstractWizardModel as it provides
the basic methods and propery change management required by all models.
Checks if the specified step is the last step in the wizard.
Parameters: step - the step to check true if its the final step in the wizard, false otherwise.
Checks if the last button should be displayed. This method should only return true if
the
WizardModel.isLastAvailable will return true at any point. Returning false will prevent
the last button from appearing on the wizard at all.
true if the last button should be displayed, false otherwise.
Takes the model to the last step in the wizard and fires the appropriate property change
events. This method must only be called if
WizardModel.isLastAvailable returns true.
Increments the model the the next step and fires the appropriate property change events.
This method must only be called if
WizardModel.isNextAvailable returns true.
Takes the model back to the previsou step and fires the appropriate property change events.
This method must only be called if
WizardModel.isPreviousAvailable returns true.
Called to request the model to update it current state. This will be called when ever
a step transition occurs but may also be called by the current
WizardStep to
force a refresh.
Removes a
PropertyChangeListener from this model.
Parameters: propertyName - the property to stop listening to. Parameters: listener - the listener to remove.
Returns an iterator over all the steps in the model. The iteration order is not guarenteed
to the be the order of traversal.
an iterator over all the steps of the model