org.pietschy.wizard
Class WizardAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.pietschy.wizard.WizardAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public abstract class WizardAction
extends javax.swing.AbstractAction
implements java.beans.PropertyChangeListener

Base class for all Wizard actions.

See Also:
Serialized Form

Field Summary
protected  Wizard wizard
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected WizardAction(java.lang.String key, Wizard wizard)
           
protected WizardAction(java.lang.String key, Wizard wizard, javax.swing.Icon icon)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
abstract  void doAction(java.awt.event.ActionEvent e)
           
 WizardStep getActiveStep()
           
 WizardModel getModel()
           
protected  Wizard getWizard()
           
protected  void handleInvalideStateException(InvalidStateException ise)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
protected abstract  void updateState()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wizard

protected Wizard wizard
Constructor Detail

WizardAction

protected WizardAction(java.lang.String key,
                       Wizard wizard,
                       javax.swing.Icon icon)

WizardAction

protected WizardAction(java.lang.String key,
                       Wizard wizard)
Method Detail

getWizard

protected Wizard getWizard()

getModel

public WizardModel getModel()

getActiveStep

public WizardStep getActiveStep()

actionPerformed

public final void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

handleInvalideStateException

protected void handleInvalideStateException(InvalidStateException ise)

doAction

public abstract void doAction(java.awt.event.ActionEvent e)
                       throws InvalidStateException
Throws:
InvalidStateException

updateState

protected abstract void updateState()

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener


Copyright © 2004 Andrew Pietsch.