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 classA Preferences implementation that just stores prefs to a map, in case we don't have permission to read invalid input: '&' write permissions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidflush()Flushes the preferences.static PreferencesReturns a shared bogus preferences instance.static PreferencesgetPrefs()Returns the user Preferences object (or bogus prefs, if security exception).static Preferencesprefs()Returns the user Preferences object.static voidAdds an object to the user Preferences object.static voidAdds an object to the user Preferences object.static voidsetPrefsClass(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
-
prefsPut
-
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.
-