Package org.vanted
Class VantedPreferences
java.lang.Object
org.vanted.VantedPreferences
- All Implemented Interfaces:
PreferencesInterface
public class VantedPreferences extends Object implements PreferencesInterface
Global Preference class for VANTED. Every Preference regarding global
settings of VANTED should be put in here. As usual Classes implementing the
PreferencesInterface provide an array of parameters giving default values and
else get their values from the java.util.Preferences object representing this
class.
- Author:
- matthiak
- Recent revisions:
- 2.8.0 Add KEGG Access preference 2.7.0 Standard save format
-
Field Summary
Fields Modifier and Type Field Description static StringPREFERENCE_DEBUG_SHOWPANELFRAMESstatic booleanPREFERENCE_DEBUG_SHOWPANELFRAMES_VALUEstatic StringPREFERENCE_KEGGACCESSstatic StringPREFERENCE_LOOKANDFEELstatic StringPREFERENCE_PROXYHOSTstatic StringPREFERENCE_PROXYPORTstatic StringPREFERENCE_SHOWALL_ALGORITHMSstatic StringPREFERENCE_STANDARD_SAVE_FILEFORMAT -
Constructor Summary
Constructors Constructor Description VantedPreferences() -
Method Summary
Modifier and Type Method Description List<Parameter>getDefaultParameters()On first start or on reset there will be no preferences available.static VantedPreferencesgetInstance()StringgetPreferencesAlternativeName()return a custom preference category, that this class will reside in.voidupdatePreferences(Preferences preferences)This method will be called, when preferences for this class have changed and the implementing class gets the chance of setting class (static) variables having the values of the parameters.
-
Field Details
-
PREFERENCE_LOOKANDFEEL
- See Also:
- Constant Field Values
-
PREFERENCE_KEGGACCESS
- See Also:
- Constant Field Values
-
PREFERENCE_PROXYHOST
- See Also:
- Constant Field Values
-
PREFERENCE_PROXYPORT
- See Also:
- Constant Field Values
-
PREFERENCE_SHOWALL_ALGORITHMS
- See Also:
- Constant Field Values
-
PREFERENCE_DEBUG_SHOWPANELFRAMES
- See Also:
- Constant Field Values
-
PREFERENCE_DEBUG_SHOWPANELFRAMES_VALUE
public static boolean PREFERENCE_DEBUG_SHOWPANELFRAMES_VALUE -
PREFERENCE_STANDARD_SAVE_FILEFORMAT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
VantedPreferences
public VantedPreferences()
-
-
Method Details
-
getInstance
-
getDefaultParameters
Description copied from interface:PreferencesInterfaceOn first start or on reset there will be no preferences available. The PreferenceManager will read this list containing the set of settings, that the implementing class thinks can be configured provide default values. All Parameters in this list will also appear in the PreferenceDialog. Entities providing preferences should add parameters to this array.- Specified by:
getDefaultParametersin interfacePreferencesInterface
-
updatePreferences
Description copied from interface:PreferencesInterfaceThis method will be called, when preferences for this class have changed and the implementing class gets the chance of setting class (static) variables having the values of the parameters. Setting static class variables will help increase speed, when querying the parameters. Direct variable access VS querying the Preferences Object for this class- Specified by:
updatePreferencesin interfacePreferencesInterface
-
getPreferencesAlternativeName
Description copied from interface:PreferencesInterfacereturn a custom preference category, that this class will reside in. If null is returned, this class will be put into a standard category dependent on its Super class- Specified by:
getPreferencesAlternativeNamein interfacePreferencesInterface- Returns:
-