Package com.openstego.desktop.util
Class UserPreferences
java.lang.Object
com.openstego.desktop.util.UserPreferences
User preferences manager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BooleangetBoolean(String key) Returns the user preference in form of booleanstatic FloatReturns the user preference in form of floatstatic IntegergetInteger(String key) Returns the user preference in form of integerstatic StringReturns the user preference in form of stringstatic voidinit()Initialize the preferences
-
Constructor Details
-
UserPreferences
protected UserPreferences()Protected constructor. Expose only static methods
-
-
Method Details
-
init
Initialize the preferences- Throws:
OpenStegoException
-
getString
Returns the user preference in form of string- Parameters:
key- Preference key- Returns:
- value
-
getInteger
Returns the user preference in form of integer- Parameters:
key- Preference key- Returns:
- value
- Throws:
OpenStegoException
-
getFloat
Returns the user preference in form of float- Parameters:
key- Preference key- Returns:
- value
- Throws:
OpenStegoException
-
getBoolean
Returns the user preference in form of boolean- Parameters:
key- Preference key- Returns:
- value
- Throws:
OpenStegoException
-