public abstract class AbstractWizardModel extends Object implements IWizardModel
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 and Description |
---|
AbstractWizardModel()
Construct.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActiveStep, isFinishAvailable, isLastAvailable, isLastStep, isNextAvailable, isPreviousAvailable, last, next, previous, reset, stepIterator
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
IWizardModel.cancel()
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
IWizardModel.isLastAvailable()
,
IWizardModel.last()
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()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.