public class StepSerie extends java.lang.Object implements WizzardEvent.Source
Constructor and Description |
---|
StepSerie() |
StepSerie(StepEntry[] entries) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(StepEntry entry) |
void |
addWizzardListener(WizzardEvent.Listener l)
Register as a listener for this event type.
|
boolean |
executeAction()
Executes the edit action for the current state.
|
StepEntry |
getCurrentEntry()
Returns the StepEntry object of the current edit state.
|
int |
getCurrentStepIndex()
Returns the current step-index.
|
StepEntry[] |
getEntries() |
StepEntry |
getEntry(int i)
Returns the StepEntry of the i-th edit-state.
|
int |
getEntryCount() |
java.lang.String |
getHelpText()
Returns the help text of the current StepEntry
|
boolean |
hasFinished()
Returns true if all steps have been checked as done.
|
void |
init()
Initializes to the first step and fires an WizzardEvent.
|
boolean |
isFinishable()
Returns false if any of the remaining actions apart from the current is mandatory.
|
void |
lockState()
Locks the current state - so the next call of setNextState() will be refused.
|
void |
removeWizzardListener(WizzardEvent.Listener l)
Deregister the listener.
|
void |
reset()
Rolls back to the initial state by undoing all actions and fires an WizzardEvent.
|
boolean |
setCurrentStepIndex(int index)
Sets the current state to the given target state by
rolling the current state forward or backward respectively.
|
boolean |
setNextState()
Steps forward to the next step to perform.
|
void |
setPreviousState()
Steps backwards to the previous step.
|
void |
unlockState()
Unlocks the current state.
|
public StepSerie()
public StepSerie(StepEntry[] entries)
public void addEntry(StepEntry entry)
public StepEntry[] getEntries()
public int getEntryCount()
public StepEntry getEntry(int i)
public StepEntry getCurrentEntry()
public java.lang.String getHelpText()
public int getCurrentStepIndex()
public boolean setCurrentStepIndex(int index)
public boolean setNextState()
public void setPreviousState()
public boolean executeAction()
public void init()
public void reset()
public void unlockState()
lockState()
public void lockState()
unlockState()
public boolean isFinishable()
public boolean hasFinished()
public void addWizzardListener(WizzardEvent.Listener l)
WizzardEvent.Source
addWizzardListener
in interface WizzardEvent.Source
public void removeWizzardListener(WizzardEvent.Listener l)
WizzardEvent.Source
removeWizzardListener
in interface WizzardEvent.Source
Copyright © 2014 EsprIT-Systems. All Rights Reserved.