net.sf.fmj.ui.wizard
Class WizardModel

java.lang.Object
  extended by net.sf.fmj.ui.wizard.WizardModel

public class WizardModel
extends java.lang.Object

Adapted Robert Eckstein's sample at http://java.sun.com/developer/technicalArticles/GUI/swing/wizard/ The model for the Wizard component, which tracks the text, icons, and enabled state of each of the buttons, as well as the current panel that is displayed. Note that the model, in its current form, is not intended to be subclassed.


Field Summary
static java.lang.String BACK_BUTTON_ENABLED_PROPERTY
          Property identification String for the Back button's enabled state
static java.lang.String BACK_BUTTON_ICON_PROPERTY
          Property identification String for the Back button's icon
static java.lang.String BACK_BUTTON_TEXT_PROPERTY
          Property identification String for the Back button's text
static java.lang.String CANCEL_BUTTON_ENABLED_PROPERTY
          Property identification String for the Cancel button's enabled state
static java.lang.String CANCEL_BUTTON_ICON_PROPERTY
          Property identification String for the Cancel button's icon
static java.lang.String CANCEL_BUTTON_TEXT_PROPERTY
          Property identification String for the Cancel button's text
static java.lang.String CURRENT_PANEL_DESCRIPTOR_PROPERTY
          Identification string for the current panel.
static java.lang.String NEXT_FINISH_BUTTON_ENABLED_PROPERTY
          Property identification String for the Next button's enabled state
static java.lang.String NEXT_FINISH_BUTTON_ICON_PROPERTY
          Property identification String for the Next button's icon
static java.lang.String NEXT_FINISH_BUTTON_TEXT_PROPERTY
          Property identification String for the Next button's text
 
Constructor Summary
WizardModel()
          Default constructor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener p)
           
protected  void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener p)
           
 void setNextFinishButtonIcon(javax.swing.Icon newIcon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_PANEL_DESCRIPTOR_PROPERTY

public static final java.lang.String CURRENT_PANEL_DESCRIPTOR_PROPERTY
Identification string for the current panel.

See Also:
Constant Field Values

BACK_BUTTON_TEXT_PROPERTY

public static final java.lang.String BACK_BUTTON_TEXT_PROPERTY
Property identification String for the Back button's text

See Also:
Constant Field Values

BACK_BUTTON_ICON_PROPERTY

public static final java.lang.String BACK_BUTTON_ICON_PROPERTY
Property identification String for the Back button's icon

See Also:
Constant Field Values

BACK_BUTTON_ENABLED_PROPERTY

public static final java.lang.String BACK_BUTTON_ENABLED_PROPERTY
Property identification String for the Back button's enabled state

See Also:
Constant Field Values

NEXT_FINISH_BUTTON_TEXT_PROPERTY

public static final java.lang.String NEXT_FINISH_BUTTON_TEXT_PROPERTY
Property identification String for the Next button's text

See Also:
Constant Field Values

NEXT_FINISH_BUTTON_ICON_PROPERTY

public static final java.lang.String NEXT_FINISH_BUTTON_ICON_PROPERTY
Property identification String for the Next button's icon

See Also:
Constant Field Values

NEXT_FINISH_BUTTON_ENABLED_PROPERTY

public static final java.lang.String NEXT_FINISH_BUTTON_ENABLED_PROPERTY
Property identification String for the Next button's enabled state

See Also:
Constant Field Values

CANCEL_BUTTON_TEXT_PROPERTY

public static final java.lang.String CANCEL_BUTTON_TEXT_PROPERTY
Property identification String for the Cancel button's text

See Also:
Constant Field Values

CANCEL_BUTTON_ICON_PROPERTY

public static final java.lang.String CANCEL_BUTTON_ICON_PROPERTY
Property identification String for the Cancel button's icon

See Also:
Constant Field Values

CANCEL_BUTTON_ENABLED_PROPERTY

public static final java.lang.String CANCEL_BUTTON_ENABLED_PROPERTY
Property identification String for the Cancel button's enabled state

See Also:
Constant Field Values
Constructor Detail

WizardModel

public WizardModel()
Default constructor.

Method Detail

setNextFinishButtonIcon

public void setNextFinishButtonIcon(javax.swing.Icon newIcon)

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener p)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener p)

firePropertyChange

protected void firePropertyChange(java.lang.String propertyName,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)