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 TypeMethodDescriptionvoidcancel()Cancels the wizard by transitioning to the cancel state.voidfinish()Finishes the wizard by transitioning to the finish state.voidnext()Go to the nextWizardStateobject.voidprevious()Go to the previousWizardStateobject.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
cancelin interfaceIBaseWizardStateMachine<T>
-
finish
public void finish()Finishes the wizard by transitioning to the finish state.- Specified by:
finishin interfaceIBaseWizardStateMachine<T>
-
next
public void next()Go to the nextWizardStateobject.- Specified by:
nextin interfaceIWizardStateMachine<T>
-
previous
public void previous()Go to the previousWizardStateobject.- Specified by:
previousin interfaceIWizardStateMachine<T>
-