Class BaseWizardStateMachineModel<T>
java.lang.Object
io.github.astrapi69.design.pattern.state.wizard.model.BaseWizardStateMachineModel<T>
- Type Parameters:
T
- the type parameter for the model object
- All Implemented Interfaces:
IBaseWizardStateMachine<BaseWizardState<BaseWizardStateMachineModel<T>>>
,IWizardStateMachine<BaseWizardState<BaseWizardStateMachineModel<T>>>
public class BaseWizardStateMachineModel<T>
extends Object
implements IBaseWizardStateMachine<BaseWizardState<BaseWizardStateMachineModel<T>>>
The class
BaseWizardStateMachineModel
implements IBaseWizardStateMachine
and
manages the state transitions for a wizard with a model object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
Cancels the wizard by transitioning to the cancel state.void
finish()
Finishes the wizard by transitioning to the finish state.void
next()
Go to the nextWizardState
object.void
previous()
Go to the previousWizardState
object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.astrapi69.design.pattern.state.wizard.IWizardStateMachine
getCurrentState, setCurrentState
-
Constructor Details
-
BaseWizardStateMachineModel
public BaseWizardStateMachineModel()
-
-
Method Details
-
cancel
public void cancel()Cancels the wizard by transitioning to the cancel state.- Specified by:
cancel
in interfaceIBaseWizardStateMachine<T>
-
finish
public void finish()Finishes the wizard by transitioning to the finish state.- Specified by:
finish
in interfaceIBaseWizardStateMachine<T>
-
next
public void next()Go to the nextWizardState
object.- Specified by:
next
in interfaceIWizardStateMachine<T>
-
previous
public void previous()Go to the previousWizardState
object.- Specified by:
previous
in interfaceIWizardStateMachine<T>
-