Package de.sciss.gui

Class BooleanPrefsMenuAction

  • All Implemented Interfaces:
    LaterInvocationManager.Listener, PreferenceEntrySync, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, java.util.prefs.PreferenceChangeListener, javax.swing.Action

    public class BooleanPrefsMenuAction
    extends PrefMenuAction
    Adds PreferenceEntrySync functionality to the superclass note that unlike PrefCheckBox and the like, it's only valid to listen to the prefs changes, not the action events
    See Also:
    Serialized Form
    • Constructor Detail

      • BooleanPrefsMenuAction

        public BooleanPrefsMenuAction​(java.lang.String text,
                                      javax.swing.KeyStroke shortcut)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Switches button state and updates preferences.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Specified by:
        actionPerformed in class MenuAction
      • writePrefs

        public void writePrefs()