Package com.globalmentor.util.prefs
Interface Preferencesable
-
- All Known Subinterfaces:
ResourceSelector<R>
public interface Preferencesable
Indicates that an object can store and retrieve preferences.- Author:
- Garret Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.prefs.Preferences
getPreferences()
void
setPreferences(java.util.prefs.Preferences preferences)
Sets the preferences to be used for this panel.
-
-
-
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 deniesRuntimePermission("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, ornull
if the default preferences for this class should be used
-
-