kawigi.cmd
Class NumberSettingAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by kawigi.cmd.DefaultAction
          extended by kawigi.cmd.SettingAction
              extended by kawigi.cmd.NumberSettingAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class NumberSettingAction
extends SettingAction

Setting action implementation for number options that are set using a spinner.

See Also:
Serialized Form

Field Summary
protected  javax.swing.SpinnerModel model
          Spinner model used for the spinner on this setting.
 
Fields inherited from class kawigi.cmd.SettingAction
dialog, tempPrefs
 
Fields inherited from class kawigi.cmd.DefaultAction
cmdid, COLOR, enableSet, FONT, LARGE_ICON, SELECTED, SPINNER_MODEL, SPINNER_VALUE, TEXT, visible, VISIBLE, visibleSet
 
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
NumberSettingAction(ActID cmdid)
          Constructs a new NumberSettingAction for the given ActID.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Does nothing.
 java.lang.Object getValue(java.lang.String key)
          Overridden to get the right value for the SPINNER_VALUE and SPINNER_MODEL properties.
 void putValue(java.lang.String key, java.lang.Object value)
          Overridden to implement putting the SPINNER_VALUE property in the right place.
 
Methods inherited from class kawigi.cmd.SettingAction
delayNotify, doUpdates, getCurrentPrefs, isEnabled
 
Methods inherited from class kawigi.cmd.DefaultAction
equals, getID, isNeedTrackEnabled, isVisible, reportError, setVisible, UIRefresh
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

protected javax.swing.SpinnerModel model
Spinner model used for the spinner on this setting.

Constructor Detail

NumberSettingAction

public NumberSettingAction(ActID cmdid)
Constructs a new NumberSettingAction for the given ActID.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Does nothing. Spinners shouldn't be firing events :-)

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class SettingAction

getValue

public java.lang.Object getValue(java.lang.String key)
Overridden to get the right value for the SPINNER_VALUE and SPINNER_MODEL properties.

Specified by:
getValue in interface javax.swing.Action
Overrides:
getValue in class javax.swing.AbstractAction

putValue

public void putValue(java.lang.String key,
                     java.lang.Object value)
Overridden to implement putting the SPINNER_VALUE property in the right place.

Specified by:
putValue in interface javax.swing.Action
Overrides:
putValue in class javax.swing.AbstractAction