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 Boolean
getBoolean
(String key) Returns the user preference in form of booleanstatic Float
Returns the user preference in form of floatstatic Integer
getInteger
(String key) Returns the user preference in form of integerstatic String
Returns the user preference in form of stringstatic void
init()
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
-