kawigi.cmd
Class ColorSettingAction
java.lang.Object
javax.swing.AbstractAction
kawigi.cmd.DefaultAction
kawigi.cmd.SettingAction
kawigi.cmd.ColorSettingAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class ColorSettingAction
- extends SettingAction
Setting action implementation for color settings.
- See Also:
- Serialized Form
| 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 |
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Does nothing :-) |
java.lang.Object |
getValue(java.lang.String key)
Overridden to override the COLOR property, which is recognized by
kawigi.widget.ColorSwatchDropdown as the value for the currently
selected color. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Overridden to set the correct setting if the COLOR property is changed. |
| 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 |
ColorSettingAction
public ColorSettingAction(ActID cmdid)
- Constructs a new ColorSettingAction for the given ActID.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Does nothing :-)
- 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 override the COLOR property, which is recognized by
kawigi.widget.ColorSwatchDropdown as the value for the currently
selected color.
- 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 set the correct setting if the COLOR property is changed.
- Specified by:
putValue in interface javax.swing.Action- Overrides:
putValue in class javax.swing.AbstractAction