org.xnap.commons.settings
Class ColorSetting

java.lang.Object
  extended by org.xnap.commons.settings.AbstractSetting<Color>
      extended by org.xnap.commons.settings.ColorSetting
All Implemented Interfaces:
Setting<Color>

public class ColorSetting
extends AbstractSetting<Color>

Provides a setting for Color objects.


Field Summary
 
Fields inherited from class org.xnap.commons.settings.AbstractSetting
ARRAY_SEPARATOR, backstore
 
Constructor Summary
ColorSetting(SettingResource backend, String key, Color defaultValue)
           
ColorSetting(SettingResource backend, String key, Color defaultValue, Validator validator)
           
 
Method Summary
protected  Color fromString(String value)
          Sets the value of the setting from s.
protected  String toString(Color value)
          Returns a string representation of the setting.
 
Methods inherited from class org.xnap.commons.settings.AbstractSetting
addPropertyChangeListener, areObjectsEqual, areObjectsEqual, getDefaultValue, getKey, getProperties, getValidator, getValue, removePropertyChangeListener, revert, setDefaultValue, setProperties, setValidator, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorSetting

public ColorSetting(SettingResource backend,
                    String key,
                    Color defaultValue,
                    Validator validator)

ColorSetting

public ColorSetting(SettingResource backend,
                    String key,
                    Color defaultValue)
Method Detail

fromString

protected Color fromString(String value)
Description copied from class: AbstractSetting
Sets the value of the setting from s.

Specified by:
fromString in class AbstractSetting<Color>

toString

protected String toString(Color value)
Description copied from class: AbstractSetting
Returns a string representation of the setting. The string is written to the settings file.

Specified by:
toString in class AbstractSetting<Color>
See Also:
AbstractSetting.fromString(String)


Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.