com.partnersoft.preferences.model
Class UserSubsystemPreferences

java.lang.Object
  extended by com.partnersoft.preferences.model.UserSubsystemPreferences
All Implemented Interfaces:
Coggable

public class UserSubsystemPreferences
extends java.lang.Object
implements Coggable

Full preferences stored for a user. This includes, for each subsystem, a named preset selection (or "Custom"), and custom settings.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
UserSubsystemPreferences()
           
UserSubsystemPreferences(Cog state)
           
UserSubsystemPreferences(java.lang.String presetName, SubsystemPreferences custom)
           
 
Method Summary
 SubsystemPreferences getCustom()
          Custom settings.
 java.lang.String getPreset()
          Name of preset settings to use.
 void setCustom(SubsystemPreferences custom)
           
 void setPreset(java.lang.String preset)
           
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSubsystemPreferences

public UserSubsystemPreferences()

UserSubsystemPreferences

public UserSubsystemPreferences(java.lang.String presetName,
                                SubsystemPreferences custom)

UserSubsystemPreferences

public UserSubsystemPreferences(Cog state)
Method Detail

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Returns:
Cog representing the internal state of this object

getPreset

public java.lang.String getPreset()
Name of preset settings to use. If "Custom" is specified, then use custom settings instead.


setPreset

public void setPreset(java.lang.String preset)

getCustom

public SubsystemPreferences getCustom()
Custom settings. These are preserved regardless, but only used if "Custom" is specified as the preset name.


setCustom

public void setCustom(SubsystemPreferences custom)