Package megamek.common.preference
Class PreferenceManager
java.lang.Object
megamek.common.preference.PreferenceManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected ClientPreferencesprotected PreferenceStorestatic final Stringprotected static PreferenceManagerstatic final Stringprotected Hashtable<String, IPreferenceStore> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientPreferencesstatic PreferenceManagergetPreferenceStore(String name) getPreferenceStore(String name, String... previousNames) protected voidload()protected voidvoidsave()Saves the client settings to the file they were loaded from: the "cfgfilename" system property when it is set, otherwise "clientsettings.xml" in the config directory.void
-
Field Details
-
DEFAULT_CFG_FILE_NAME
- See Also:
-
CFG_FILE_OPTION_NAME
- See Also:
-
ROOT_NODE_NAME
- See Also:
-
CLIENT_SETTINGS_STORE_NAME
- See Also:
-
stores
-
clientPreferences
-
clientPreferenceStore
-
instance
-
-
Constructor Details
-
PreferenceManager
protected PreferenceManager()
-
-
Method Details
-
getInstance
-
getClientPreferences
-
getPreferenceStore
-
getPreferenceStore
-
load
protected void load() -
load
-
save
public void save()Saves the client settings to the file they were loaded from: the "cfgfilename" system property when it is set, otherwise "clientsettings.xml" in the config directory. -
save
-