|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pietschy.wizard.AbstractWizardModel
org.pietschy.wizard.models.StaticModel
This class provides the basis for a simple linear wizard model. Steps are added by calling the
add(org.pietschy.wizard.WizardStep) method and are traversed in the order of addition.
| Constructor Summary | |
StaticModel()
|
|
| Method Summary | |
void |
add(WizardStep step)
Adds a step to the end of the wizard. |
boolean |
allStepsComplete()
Returns true if all the steps in the wizard return true from WizardStep.isComplete(). |
javax.swing.JComponent |
getOverviewComponent()
Returns an JComponent that will serve as an overview for this wizard. |
boolean |
isLastStep(WizardStep step)
Checks if the specified step is the last step in the wizard. |
void |
lastStep()
Takes the model to the last step in the wizard and fires the appropriate property change events. |
void |
nextStep()
Increments the model the the next step and fires the appropriate property change events. |
void |
previousStep()
Takes the model back to the previsou step and fires the appropriate property change events. |
void |
refreshModelState()
This method is invoked after the current step has been changed to update the state of the model. |
void |
reset()
Resest this model. |
java.util.Iterator |
stepIterator()
Returns an iterator over all the steps in the model. |
| Methods inherited from class org.pietschy.wizard.AbstractWizardModel |
addCompleteListener, addPropertyChangeListener, addPropertyChangeListener, getActiveStep, isLastAvailable, isLastVisible, isNextAvailable, isPreviousAvailable, removePropertyChangeListener, removePropertyChangeListener, setActiveStep, setCancelAvailable, setLastAvailable, setLastVisible, setNextAvailable, setPreviousAvailable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StaticModel()
| Method Detail |
public void reset()
reset in interface WizardModelpublic void nextStep()
WizardModelWizardModel.isNextAvailable() returns true.
nextStep in interface WizardModelpublic void previousStep()
WizardModelWizardModel.isPreviousAvailable() returns true.
previousStep in interface WizardModelpublic void lastStep()
WizardModelWizardModel.isLastAvailable() returns true.
lastStep in interface WizardModelpublic boolean isLastStep(WizardStep step)
WizardModel
isLastStep in interface WizardModelstep - the step to check
public java.util.Iterator stepIterator()
WizardModel
stepIterator in interface WizardModelpublic void add(WizardStep step)
step - the WizardStep to add.public void refreshModelState()
refreshModelState in interface WizardModelrefreshModelState in class AbstractWizardModelpublic boolean allStepsComplete()
WizardStep.isComplete(). This is primarily used to determine if the last button
can be enabled.
public javax.swing.JComponent getOverviewComponent()
Wizard.setOverviewVisible(boolean) with a value of false.
getOverviewComponent in interface OverviewProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||