Package snap.swing
Class AWTPrefs
java.lang.Object
snap.util.Prefs
snap.swing.AWTPrefs
AWT implementation of Snap Prefs.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all the preferences.void
flush()
Updates this persistant store associated with these preferences.boolean
getBoolean
(String aKey, boolean aDefault) Returns a boolean value for given key.Returns a child prefs for given name.double
Returns a float value for given key.int
Returns an int value for given key.String[]
getKeys()
Returns the currently set prefs keys.static AWTPrefs
Returns the shared AWTPrefs.Returns a value for given string and default.Returns a value for given string and default.void
Removes a value for given key.void
Sets a value for given string.Methods inherited from class snap.util.Prefs
getDefaultPrefs, getFake, getPrefsForName, getString, getValue, setDefaultPrefs
-
Method Details
-
getValue
Description copied from class:Prefs
Returns a value for given string and default. -
setValue
Sets a value for given string. -
remove
Removes a value for given key. -
getString
Returns a value for given string and default. -
getInt
Returns an int value for given key. -
getDouble
Returns a float value for given key. -
getBoolean
Returns a boolean value for given key.- Overrides:
getBoolean
in classPrefs
-
getKeys
Returns the currently set prefs keys. -
getChild
Returns a child prefs for given name. -
flush
public void flush()Updates this persistant store associated with these preferences. -
clear
public void clear()Clears all the preferences. -
getPrefs
Returns the shared AWTPrefs.
-