net.sf.doolin.gui.wizard.support
Class WizardNextAction

java.lang.Object
  extended by net.sf.doolin.gui.action.AbstractGUIAction
      extended by net.sf.doolin.gui.action.AbstractTextAction
          extended by net.sf.doolin.gui.wizard.support.AbstractWizardAction
              extended by net.sf.doolin.gui.wizard.support.WizardNextAction
All Implemented Interfaces:
GUIAction

public class WizardNextAction
extends AbstractWizardAction

"Previous" action for the wizard.

Author:
Damien Coraboeuf

Constructor Summary
WizardNextAction()
          Constructor.
WizardNextAction(String text)
          Constructor with custom text
WizardNextAction(String text, DisplayStateHandler handler)
          Constructor with custom text and display state handler.
 
Method Summary
protected  void doExecute(ActionContext context)
          Gets the WizardState from the context and calls its WizardState.doNext(ActionContext) method.
protected  String getShortcut()
          Gets the shortcut for this action
 
Methods inherited from class net.sf.doolin.gui.wizard.support.AbstractWizardAction
getWizard
 
Methods inherited from class net.sf.doolin.gui.action.AbstractTextAction
getIconIDExpression, getId, getShortcutExpression, getText, getTextExpression, getTipExpression
 
Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction
execute, getActionContextData, getActionContextDataExtractor, getDisplayStateHandler, getIcon, getIconService, setActionContextDataExtractor, setDisplayStateHandler, setIconService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WizardNextAction

public WizardNextAction()
Constructor.


WizardNextAction

public WizardNextAction(String text)
Constructor with custom text

Parameters:
text - Text for the button

WizardNextAction

public WizardNextAction(String text,
                        DisplayStateHandler handler)
Constructor with custom text and display state handler. The handler will be associated with a ValidationDisplayStateHandler.

Parameters:
text - Text for the button
handler - Display state handler
Method Detail

doExecute

protected void doExecute(ActionContext context)
                  throws Exception
Gets the WizardState from the context and calls its WizardState.doNext(ActionContext) method.

Specified by:
doExecute in class AbstractGUIAction
Parameters:
context - the context
Throws:
Exception - the exception

getShortcut

protected String getShortcut()
Description copied from class: AbstractTextAction
Gets the shortcut for this action

Specified by:
getShortcut in class AbstractTextAction
Returns:
Shortcut definition
See Also:
KeyStroke.getKeyStroke(String)


Copyright © 2011. All Rights Reserved.