Package com.inductiveautomation.rm.base
Class RMPrefsUtils
java.lang.Object
com.inductiveautomation.rm.base.RMPrefsUtils
This class offers a number of useful general purpose utilities used by ribs classes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A Preferences implementation that just stores prefs to a map, in case we don't have permission to read & write permissions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
flush()
Flushes the preferences.static Preferences
Returns a shared bogus preferences instance.static Preferences
getPrefs()
Returns the user Preferences object (or bogus prefs, if security exception).static Preferences
prefs()
Returns the user Preferences object.static void
Adds an object to the user Preferences object.static void
Adds an object to the user Preferences object.static void
setPrefsClass
(Class aClass) Sets the class that ribs preferences are associated with.
-
Constructor Details
-
RMPrefsUtils
public RMPrefsUtils()
-
-
Method Details
-
prefs
Returns the user Preferences object. -
getPrefs
Returns the user Preferences object (or bogus prefs, if security exception). -
prefsPut
Adds an object to the user Preferences object. -
prefsPut
Adds an object to the user Preferences object. -
flush
public static void flush()Flushes the preferences. -
setPrefsClass
Sets the class that ribs preferences are associated with. -
getBogusPreferences
Returns a shared bogus preferences instance.
-