|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.extensions.wizard.AbstractWizardModel
public abstract class AbstractWizardModel
Abstract wizard model that provides an implementation for handling
wizard model listeners
and provides base implementations of many
methods. If you want to provide a custom implementation of IWizardModel
, it is
recommended you start by overriding this class.
Constructor Summary | |
---|---|
AbstractWizardModel()
Construct. |
Method Summary | |
---|---|
void |
addListener(IWizardModelListener listener)
Adds a wizard model listener. |
void |
cancel()
This implementation just fires a cancel event . |
void |
finish()
This implementation just fires a finish event . |
protected void |
fireActiveStepChanged(IWizardStep step)
Notify listeners that the active step has changed. |
protected void |
fireWizardCancelled()
Notify listeners that the wizard is finished. |
protected void |
fireWizardFinished()
Notify listeners that the wizard is finished. |
boolean |
isCancelVisible()
Gets whether cancel functionality is available. |
boolean |
isLastVisible()
Checks if the last button should be displayed. |
void |
removeListener(IWizardModelListener listener)
Removes a wizard model listener. |
void |
setCancelVisible(boolean cancelVisible)
Sets whether cancel functionality is available. |
void |
setLastVisible(boolean lastVisible)
Configures if the last button should be displayed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wicket.extensions.wizard.IWizardModel |
---|
getActiveStep, isLastAvailable, isLastStep, isNextAvailable, isPreviousAvailable, last, next, previous, reset, stepIterator |
Constructor Detail |
---|
public AbstractWizardModel()
Method Detail |
---|
public final void addListener(IWizardModelListener listener)
addListener
in interface IWizardModel
listener
- The listener to addpublic void cancel()
a cancel event
.
Though this isn't a very strong contract, it gives all the power to the user of this model.
cancel
in interface IWizardModel
IWizardModel.cancel()
public void finish()
a finish event
.
Though this isn't a very strong contract, it gives all the power to the user of this model.
finish
in interface IWizardModel
IWizardModel.finish()
public boolean isCancelVisible()
isCancelVisible
in interface IWizardModel
public boolean isLastVisible()
IWizardModel.isLastAvailable()
can return true at any point. Returning false will
prevent the last button from appearing on the wizard at all.
isLastVisible
in interface IWizardModel
public final void removeListener(IWizardModelListener listener)
removeListener
in interface IWizardModel
listener
- The listener to removepublic void setCancelVisible(boolean cancelVisible)
cancelVisible
- Whether cancel functionality is availablepublic void setLastVisible(boolean lastVisible)
lastVisible
- true to display the last button, false otherwise.isLastVisible()
protected final void fireActiveStepChanged(IWizardStep step)
step
- The new stepprotected final void fireWizardCancelled()
protected final void fireWizardFinished()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |