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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classA Preferences implementation that just stores prefs to a map, in case we don't have permission to read & write permissions.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
RMPrefsUtilspublic RMPrefsUtils()
 
- 
- 
Method Details- 
prefsReturns the user Preferences object.
- 
getPrefsReturns the user Preferences object (or bogus prefs, if security exception).
- 
prefsPutAdds an object to the user Preferences object.
- 
prefsPutAdds an object to the user Preferences object.
- 
flushpublic static void flush()Flushes the preferences.
- 
setPrefsClassSets the class that ribs preferences are associated with.
- 
getBogusPreferencesReturns a shared bogus preferences instance.
 
-