org.xnap.commons.settings
Class BooleanSetting
java.lang.Object
org.xnap.commons.settings.AbstractSetting<Boolean>
org.xnap.commons.settings.BooleanSetting
- All Implemented Interfaces:
- Setting<Boolean>
public class BooleanSetting
- extends AbstractSetting<Boolean>
- Author:
- Steffen Pingel
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 |
BooleanSetting
public BooleanSetting(SettingResource backend,
String key,
Boolean defaultValue,
Validator validator)
BooleanSetting
public BooleanSetting(SettingResource backend,
String key,
Boolean defaultValue)
fromString
protected Boolean fromString(String value)
- Description copied from class:
AbstractSetting
- Sets the value of the setting from s.
- Specified by:
fromString
in class AbstractSetting<Boolean>
toString
protected String toString(Boolean 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<Boolean>
- See Also:
AbstractSetting.fromString(String)
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.