com.threerings.admin.server
Class PrefsConfigRegistry.PrefsObjectRecord

java.lang.Object
  extended by com.threerings.admin.server.ConfigRegistry.ObjectRecord
      extended by com.threerings.admin.server.PrefsConfigRegistry.PrefsObjectRecord
All Implemented Interfaces:
AttributeChangeListener, ChangeListener, ElementUpdateListener, SetListener<DSet.Entry>
Enclosing class:
PrefsConfigRegistry

protected class PrefsConfigRegistry.PrefsObjectRecord
extends ConfigRegistry.ObjectRecord

Stores preferences using the Java preferences system.


Field Summary
 PrefsConfig config
           
 
Fields inherited from class com.threerings.admin.server.ConfigRegistry.ObjectRecord
object
 
Constructor Summary
PrefsConfigRegistry.PrefsObjectRecord(String path, DObject object)
           
 
Method Summary
protected  boolean getValue(String field, boolean defval)
           
protected  byte getValue(String field, byte defval)
           
protected  float getValue(String field, float defval)
           
protected  float[] getValue(String field, float[] defval)
           
protected  int getValue(String field, int defval)
           
protected  int[] getValue(String field, int[] defval)
           
protected  long getValue(String field, long defval)
           
protected  long[] getValue(String field, long[] defval)
           
protected  short getValue(String field, short defval)
           
protected  String getValue(String field, String defval)
           
protected  String[] getValue(String field, String[] defval)
           
protected  void setValue(String field, boolean value)
           
protected  void setValue(String field, byte value)
           
protected  void setValue(String field, float value)
           
protected  void setValue(String field, float[] value)
           
protected  void setValue(String field, int value)
           
protected  void setValue(String field, int[] value)
           
protected  void setValue(String field, long value)
           
protected  void setValue(String field, long[] value)
           
protected  void setValue(String field, short value)
           
protected  void setValue(String field, String value)
           
protected  void setValue(String field, String[] value)
           
 
Methods inherited from class com.threerings.admin.server.ConfigRegistry.ObjectRecord
attributeChanged, deserialize, elementUpdated, entryAdded, entryRemoved, entryUpdated, init, initField, nameToKey, serialize, serializeAttribute, updateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

public PrefsConfig config
Constructor Detail

PrefsConfigRegistry.PrefsObjectRecord

public PrefsConfigRegistry.PrefsObjectRecord(String path,
                                             DObject object)
Method Detail

getValue

protected boolean getValue(String field,
                           boolean defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected byte getValue(String field,
                        byte defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected short getValue(String field,
                         short defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected int getValue(String field,
                       int defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected long getValue(String field,
                        long defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected float getValue(String field,
                         float defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected String getValue(String field,
                          String defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected int[] getValue(String field,
                         int[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected float[] getValue(String field,
                           float[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected long[] getValue(String field,
                          long[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected String[] getValue(String field,
                            String[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        boolean value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        byte value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        short value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        int value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        long value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        float value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        String value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        int[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        float[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        long[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        String[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord