com.partnersoft.preferences.app
Class PreferencesManager

java.lang.Object
  extended by com.partnersoft.preferences.app.PreferencesManager

public class PreferencesManager
extends java.lang.Object

Global manager for preferences.

You should not generally instantiate it; instead use SystemServices.preferences() to get the system copy.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
PreferencesManager()
           
 
Method Summary
 ControlPreferences controlPreferences()
           
 boolean isMapsetLoaded(java.lang.String mapsetName)
           
 LayoutPreferences layoutPreferences()
           
 MapsetPreferences mapsetPreferencesFor(java.lang.String mapsetName)
           
 MapSpacePreferences mapSpacePreferences()
           
 SubsystemPreferences presetNamed(java.lang.String subsystemName, java.lang.String preset)
           
 Naming<SubsystemPreferences> presetsFor(java.lang.String subsystemName)
           
 void saveUserCustom(java.lang.String subsystemName, SubsystemPreferences prefs)
          This writes the preferences object into the Java preferences store (under Windows, the user registry).
 void saveUserPreset(java.lang.String subsystemName, java.lang.String preset)
           
 void setMapsetLoaded(java.lang.String mapsetName, boolean loaded)
           
 SoundPreferences soundPreferences()
           
 UpdatePreferences updatePreferences()
           
 SubsystemPreferences userCustomFor(java.lang.String subsystemName)
          Returns the custom settings for the current user for the named subsystem from the Java preferences store (under Windows, the user registry).
 SubsystemPreferences userEffectiveFor(java.lang.String subsystemName)
          Returns the effective settings (preset or custom as appropriate) for the current user for the named subsystem.
 java.lang.String userPresetFor(java.lang.String subsystemName)
          Returns the name of the preset specified for the current user for the named subsystem.
 VideoPreferences videoPreferences()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesManager

public PreferencesManager()
Method Detail

userPresetFor

public java.lang.String userPresetFor(java.lang.String subsystemName)
Returns the name of the preset specified for the current user for the named subsystem.


userCustomFor

public SubsystemPreferences userCustomFor(java.lang.String subsystemName)
Returns the custom settings for the current user for the named subsystem from the Java preferences store (under Windows, the user registry).


userEffectiveFor

public SubsystemPreferences userEffectiveFor(java.lang.String subsystemName)
Returns the effective settings (preset or custom as appropriate) for the current user for the named subsystem.


presetNamed

public SubsystemPreferences presetNamed(java.lang.String subsystemName,
                                        java.lang.String preset)

presetsFor

public Naming<SubsystemPreferences> presetsFor(java.lang.String subsystemName)

saveUserPreset

public void saveUserPreset(java.lang.String subsystemName,
                           java.lang.String preset)

saveUserCustom

public void saveUserCustom(java.lang.String subsystemName,
                           SubsystemPreferences prefs)
This writes the preferences object into the Java preferences store (under Windows, the user registry).


videoPreferences

public VideoPreferences videoPreferences()

layoutPreferences

public LayoutPreferences layoutPreferences()

updatePreferences

public UpdatePreferences updatePreferences()

controlPreferences

public ControlPreferences controlPreferences()

soundPreferences

public SoundPreferences soundPreferences()

mapSpacePreferences

public MapSpacePreferences mapSpacePreferences()

mapsetPreferencesFor

public MapsetPreferences mapsetPreferencesFor(java.lang.String mapsetName)

isMapsetLoaded

public boolean isMapsetLoaded(java.lang.String mapsetName)

setMapsetLoaded

public void setMapsetLoaded(java.lang.String mapsetName,
                            boolean loaded)