Package org.moeaframework.util.mvc
Class InvertedToggleAction
java.lang.Object
javax.swing.AbstractAction
org.moeaframework.util.mvc.LocalizedAction
org.moeaframework.util.mvc.InvertedToggleAction
- All Implemented Interfaces:
- ActionListener,- Serializable,- Cloneable,- EventListener,- Action,- SettingChangedListener
The inverse of a 
ToggleAction.  If the original toggle would be checked, the inverted toggle is unchecked
 (and vice versa).- See Also:
- 
Field SummaryFields inherited from class javax.swing.AbstractActionchangeSupport, enabledFields inherited from interface javax.swing.ActionACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
- 
Constructor SummaryConstructorsConstructorDescriptionInvertedToggleAction(String id, Localization localization, Toggle toggle) Constructs a new inverted toggle action.
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidCalled when the value of a setting changed.Convenience method to create aJMenuItembased on this action.Methods inherited from class javax.swing.AbstractActionaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
- 
Constructor Details- 
InvertedToggleActionConstructs a new inverted toggle action.- Parameters:
- id- the id for localization
- localization- the source for localization strings
- toggle- the underlying toggle setting
 
 
- 
- 
Method Details- 
actionPerformed- Specified by:
- actionPerformedin interface- ActionListener
 
- 
settingChangedDescription copied from interface:SettingChangedListenerCalled when the value of a setting changed.- Specified by:
- settingChangedin interface- SettingChangedListener
- Parameters:
- event- details of the change
 
- 
toMenuItemConvenience method to create aJMenuItembased on this action.- Returns:
- the menu item
 
 
-