Package de.sciss.app

Interface PreferenceEntrySync

    • Method Detail

      • setPreferences

        void setPreferences​(java.util.prefs.Preferences prefs,
                            java.lang.String key)
        Enables Preferences synchronization. This method is not thread safe and must be called from the event thread. When a preference change is received, the GUI is updated and dispatches an event to registered listeners. Likewise, if the user adjusts the GUI value, the preference will be updated. The same is true, if you call one of the value changing methods.
        Parameters:
        prefs - the preferences node in which the value is stored, or null to disable prefs sync.
        key - the key used to store and recall prefs. the value is converted into a string.
      • setPreferenceNode

        void setPreferenceNode​(java.util.prefs.Preferences prefs)
      • setPreferenceKey

        void setPreferenceKey​(java.lang.String key)
      • getPreferenceNode

        java.util.prefs.Preferences getPreferenceNode()
        Gets the recently set preference node
        Returns:
        the node set with setPreferences or null if no prefs were set
      • getPreferenceKey

        java.lang.String getPreferenceKey()
        Gets the recently set preference key
        Returns:
        the key set with setPreferences or null if no prefs were set
      • setReadPrefs

        void setReadPrefs​(boolean b)
      • setWritePrefs

        void setWritePrefs​(boolean b)
      • getReadPrefs

        boolean getReadPrefs()
      • getWritePrefs

        boolean getWritePrefs()
      • readPrefs

        void readPrefs()
      • writePrefs

        void writePrefs()