wizard model listeners can be registered to be notified of important events (changing the active step) using the add listener method.
Typically, you would use the default implementation of this interface , but if you need to do more sophisticated stuff, like branching etc, you can consider creating your own implementation.
Swing Wizard Framework served as a valuable source of inspiration.
| Method Summary | |
|---|---|
| void |
Adds a wizard model listener. |
| void |
Cancels further processing. |
| void |
Instructs the wizard to finish succesfully. |
| IWizardStep |
Gets the current active step the wizard should display. |
| boolean |
Gets whether the cancel button should be displayed. |
| boolean |
Checks if the last button should be enabled. |
| boolean |
Gets whether the specified step is the last step in the wizard. |
| boolean |
Gets whether the last button should be displayed. |
| boolean |
Gets whether the next button should be enabled. |
| boolean |
Gets whether the previous button should be enabled. |
| void |
Takes the model to the last step in the wizard. |
| void |
Increments the model the the next step. |
| void |
Takes the model to the previous step.This method must only be called if isPreviousAvailable() returns true. |
| void |
Removes a wizard model listener. |
| void |
Resets the model, setting it to the first step. |
| Iterator |
Returns an iterator over all the steps in the model. |
public
void
cancel
(
)
public
void
finish
(
)
public
boolean
isCancelVisible
(
)
public
boolean
isLastAvailable
(
)
public
boolean
isLastVisible
(
)
public
boolean
isNextAvailable
(
)
public
boolean
isPreviousAvailable
(
)
public
void
lastStep
(
)
public
void
next
(
)
public
void
previous
(
)
public
void
reset
(
)