Interface Preferencesable

  • All Known Subinterfaces:
    ResourceSelector<R>

    public interface Preferencesable
    Indicates that an object can store and retrieve preferences.
    Author:
    Garret Wilson
    • Method Detail

      • getPreferences

        java.util.prefs.Preferences getPreferences()
                                            throws java.lang.SecurityException
        Returns:
        The preferences that should be used for this object, or the default preferences for this class if no preferences are specifically set.
        Throws:
        java.lang.SecurityException - Thrown if a security manager is present and it denies RuntimePermission("preferences").
      • setPreferences

        void setPreferences​(java.util.prefs.Preferences preferences)
        Sets the preferences to be used for this panel.
        Parameters:
        preferences - The preferences that should be used for this panel, or null if the default preferences for this class should be used