com.partnersoft.preferences.model
Class AbstractSubsystemPreferences

java.lang.Object
  extended by com.partnersoft.preferences.model.AbstractSubsystemPreferences
All Implemented Interfaces:
Coggable, SubsystemPreferences
Direct Known Subclasses:
ControlPreferences, GraphicsPreferences, Java2dPreferences, LayoutPreferences, MapsetPreferences, MapSpacePreferences, OpenglPreferences, SoundPreferences, UpdatePreferences, VideoPreferences

public abstract class AbstractSubsystemPreferences
extends java.lang.Object
implements SubsystemPreferences

Starter implementation for the SubsystemPreferences interface.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Constructor Summary
AbstractSubsystemPreferences()
           
AbstractSubsystemPreferences(Cog state)
          Coggable constructor.
 
Method Summary
 java.lang.String getName()
          This is the name of the preferences object, used when storing or referring to it as a preset default.
 void setName(java.lang.String name)
           
 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

AbstractSubsystemPreferences

public AbstractSubsystemPreferences()

AbstractSubsystemPreferences

public AbstractSubsystemPreferences(Cog state)
Coggable constructor. Subclasses must call super(state) in their Coggable constructor.

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

getName

public java.lang.String getName()
Description copied from interface: SubsystemPreferences
This is the name of the preferences object, used when storing or referring to it as a preset default.

Specified by:
getName in interface SubsystemPreferences

setName

public void setName(java.lang.String name)
Specified by:
setName in interface SubsystemPreferences