Package jmri.util.prefs
Class JmriUserInterfaceConfigurationProvider
java.lang.Object
jmri.util.prefs.AbstractConfigurationProvider
jmri.util.prefs.JmriUserInterfaceConfigurationProvider
Provides a general purpose XML element storage mechanism for the storage of
user interface configuration.
There are two configuration files per Profile and
NodeIdentity, both stored in the directory
profile:profile:
"user-interface.xml"preferences that are shared across multiple nodes for a single profile. An example of such a preference would be the Railroad Name preference.<node-identity>/"user-interface.xml"preferences that are specific to the profile running on a specific host (<node-identity> is the identity returned byNodeIdentity.networkIdentity()). An example of such a preference would be a file location.
Non-profile specific configuration that applies to all profiles is stored in
the file
settings:preferences/"user-interface.xml".
-
Field Summary
FieldsFields inherited from class jmri.util.prefs.AbstractConfigurationProvider
project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static JmriUserInterfaceConfigurationProviderfindProvider(Profile project) Get the JmriPrefererncesProvider for the specified profile.protected AuxiliaryConfigurationGet theAuxiliaryConfiguration.static AuxiliaryConfigurationgetConfiguration(Profile project) Get thePreferencesfor the specified class in the specified profile.protected FilegetConfigurationFile(boolean shared) Methods inherited from class jmri.util.prefs.AbstractConfigurationProvider
getConfigurationDirectory, isPrivateBackedUp, isSharedBackedUp, setPrivateBackedUp, setSharedBackedUp
-
Field Details
-
NAMESPACE
- See Also:
-
-
Constructor Details
-
JmriUserInterfaceConfigurationProvider
-
-
Method Details
-
findProvider
Get the JmriPrefererncesProvider for the specified profile.- Parameters:
project- The profile. This is most often the profile returned by theProfileManager.getActiveProfile()method of the ProfileManager returned byProfileManager.getDefault()- Returns:
- The shared or private JmriPreferencesProvider for the project.
-
getConfiguration
Get thePreferencesfor the specified class in the specified profile.- Parameters:
project- The profile. This is most often the profile returned by theProfileManager.getActiveProfile()method of the ProfileManager returned byProfileManager.getDefault()- Returns:
- The shared or private AuxiliaryConfiguration for project.
-
getConfiguration
Get theAuxiliaryConfiguration.- Specified by:
getConfigurationin classAbstractConfigurationProvider- Returns:
- The AuxiliaryConfiguration.
-
getConfigurationFile
- Specified by:
getConfigurationFilein classAbstractConfigurationProvider
-