|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pietschy.wizard.AbstractWizardStep
org.pietschy.wizard.pane.WizardPaneStep
PanelWizardStep
.
A simple step that can be used to decouple the step from its user interface
so that the user interface can be created in a standalone class implementing
WizardPane
.
Particularly useful if the user interface is built using a GUI tool.
For example:
StaticModel model = new StaticModel(); model.add(new (new WizardPaneStep(new FirstPane(), "Start", "Description")); model.add(...); ... Wizard wizard = new Wizard(model); wizard.showInFrame("My Wizard");
Field Summary |
Fields inherited from interface org.pietschy.wizard.WizardStep |
_ID_ |
Constructor Summary | |
WizardPaneStep(WizardPane pane,
java.lang.String name,
java.lang.String summary)
Deprecated. Creates a new WizardPaneStep |
|
WizardPaneStep(WizardPane pane,
java.lang.String name,
java.lang.String summary,
javax.swing.Icon icon)
Deprecated. Creates a new WizardPaneStep |
Method Summary | |
void |
applyState()
Deprecated. This method is called whenever the user presses next while this step is active. |
java.awt.Dimension |
getPreferredSize()
Deprecated. This method must return the maximum preferred size of this wizard step. |
void |
init(WizardModel model)
Deprecated. Called to initialize the step. |
void |
prepare()
Deprecated. Called to prepare this step to display. |
Methods inherited from class org.pietschy.wizard.AbstractWizardStep |
abortBusy, addPropertyChangeListener, addPropertyChangeListener, getIcon, getName, getSummary, getView, isBusy, isComplete, removePropertyChangeListener, removePropertyChangeListener, setBusy, setComplete, setIcon, setName, setSummary, setView |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WizardPaneStep(WizardPane pane, java.lang.String name, java.lang.String summary)
pane
- -
the graphical component. Should be a subclass of Componentname
- summary
- public WizardPaneStep(WizardPane pane, java.lang.String name, java.lang.String summary, javax.swing.Icon icon)
pane
- -
the graphical component. Should be a subclass of Componentname
- summary
- icon
- Method Detail |
public void init(WizardModel model)
AbstractWizardStep
init
in interface WizardStep
init
in class AbstractWizardStep
model
- the model to which the step belongs.WizardStep.init(org.pietschy.wizard.WizardModel)
public void prepare()
WizardStep
This method will be called whenever the step is to be displayed, regardless of whether the user pressed next or previous.
WizardStep.prepare()
public void applyState() throws InvalidStateException
WizardStep
If this method will take a long time to complete, subclasses should consider executing the work and a separate thread and displaying some kind of progress indicator.
This method will only be called if WizardModel.isNextAvailable()
and WizardStep.isComplete()
return true.
InvalidStateException
- if an error occurs and the wizard can't progress to the next
step. By default the message of this exception will be displayed to the user. If you wish to
prevent this behaviour please ensure InvalidStateException.setShowUser(boolean)
is called with
a value of false.WizardStep.applyState()
public java.awt.Dimension getPreferredSize()
WizardStep
WizardStep.init(org.pietschy.wizard.WizardModel)
.
WizardStep.getPreferredSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |