net.sf.doolin.gui.wizard.state
Class AbstractWizardDisplayStateHandler
java.lang.Object
net.sf.doolin.gui.display.AbstractDisplayStateHandler
net.sf.doolin.gui.wizard.state.AbstractWizardDisplayStateHandler
- All Implemented Interfaces:
- DisplayStateHandler
- Direct Known Subclasses:
- FinishDisplayStateHandler, NextDisplayStateHandler, PreviousDisplayStateHandler
public abstract class AbstractWizardDisplayStateHandler
- extends AbstractDisplayStateHandler
DisplayStateHandler for a wizard action.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWizardDisplayStateHandler
public AbstractWizardDisplayStateHandler()
getDisplayState
public DisplayState getDisplayState(ActionContext actionContext)
- Description copied from interface:
DisplayStateHandler
- Gets the current
DisplayState for the given action context
- Parameters:
actionContext - Action context.
- Returns:
- Display state
subscribe
public void subscribe(ActionContext actionContext,
Runnable task)
- Description copied from interface:
DisplayStateHandler
- Subscribes a task that is executed each time this display state handler
changes its state.
- Parameters:
actionContext - Action context for this display state handlertask - Task to run each time the state change
getDisplayState
protected abstract <B> DisplayState getDisplayState(WizardState<B> state,
ActionContext actionContext)
- Gets the
DisplayState according to the current
WizardState and the action context.
- Type Parameters:
B - Type of bean for the wizard- Parameters:
state - Current wizard stateactionContext - Wizard action context
- Returns:
- Display state
Copyright © 2011. All Rights Reserved.