Package eu.isas.reporter.settings
Class ReporterPreferences
java.lang.Object
eu.isas.reporter.settings.ReporterPreferences
- All Implemented Interfaces:
Serializable
This class contains the quantification options set by the user.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the default settings.static ReporterPreferencesLoads the quantification user preferences.static StringReturns the file used to save the user preferences.static StringReturns the folder used to save the user preferences.booleanisSameAs(ReporterPreferences anotherSetting) Indicates whether another setting is the same as this one.static voidsaveUserPreferences(ReporterPreferences userPreferences) Convenience method saving the user preferences.voidsetDefaultSettings(ReporterSettings defaultSettings) Sets the default settings.static voidsetUserPreferencesFolder(String userPreferencesFile) Sets the folder used to save the user preferences.
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
isSameAs
Indicates whether another setting is the same as this one.- Parameters:
anotherSetting- another setting- Returns:
- a boolean indicating whether another setting is the same as this one
-
getDefaultSettings
Returns the default settings.- Returns:
- the default settings
-
setDefaultSettings
Sets the default settings.- Parameters:
defaultSettings- the default settings
-
saveUserPreferences
Convenience method saving the user preferences.- Parameters:
userPreferences- the new user preferences
-
getUserPreferences
Loads the quantification user preferences. If an error is encountered, preferences are set back to default.- Returns:
- returns the utilities user preferences
-
getUserPreferencesFile
Returns the file used to save the user preferences.- Returns:
- the file used to save the user preferences
-
getUserPreferencesFolder
Returns the folder used to save the user preferences.- Returns:
- the folder used to save the user preferences
-
setUserPreferencesFolder
Sets the folder used to save the user preferences.- Parameters:
userPreferencesFile- the folder used to save the user preferences
-