|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractAction org.xnap.commons.gui.action.AbstractXNapAction org.xnap.commons.gui.action.AbstractToggleAction org.xnap.commons.gui.action.AbstractToggleSettingAction
public abstract class AbstractToggleSettingAction
Provides a default implementation for a toggle action that monitors
a BooleanSetting
.
Field Summary |
---|
Fields inherited from class org.xnap.commons.gui.action.AbstractXNapAction |
---|
ICON_FILENAME |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface org.xnap.commons.gui.action.ToggleAction |
---|
SELECTED |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
AbstractToggleSettingAction(BooleanSetting setting)
Constructs a toggle action that monitors a boolean preference key. |
Method Summary | |
---|---|
void |
propertyChange(PropertyChangeEvent e)
|
void |
toggled(boolean selected)
Updates the setting. |
Methods inherited from class org.xnap.commons.gui.action.AbstractToggleAction |
---|
actionPerformed, isSelected, setSelected |
Methods inherited from class org.xnap.commons.gui.action.AbstractXNapAction |
---|
getIcon, initialize, setEnabledLater, tr, tr |
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 |
Methods inherited from interface javax.swing.Action |
---|
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Constructor Detail |
---|
public AbstractToggleSettingAction(BooleanSetting setting)
setting
- the setting to monitorMethod Detail |
---|
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
public void toggled(boolean selected)
toggled
in class AbstractToggleAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |