org.xnap.commons.settings
Class StringSetting
java.lang.Object
org.xnap.commons.settings.AbstractSetting<String>
org.xnap.commons.settings.StringSetting
- All Implemented Interfaces:
- Setting<String>
- Direct Known Subclasses:
- CompletionModeSetting, DefaultCompletionModeSetting
public class StringSetting
- extends AbstractSetting<String>
Provides a setting for String objects.
Constructor Summary |
StringSetting(SettingResource backend,
String key,
String defaultValue)
|
StringSetting(SettingResource backend,
String key,
String defaultValue,
String validChars)
|
StringSetting(SettingResource backend,
String key,
String defaultValue,
String validChars,
int minLength)
|
StringSetting(SettingResource backend,
String key,
String defaultValue,
Validator validator)
|
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 |
StringSetting
public StringSetting(SettingResource backend,
String key,
String defaultValue,
String validChars,
int minLength)
StringSetting
public StringSetting(SettingResource backend,
String key,
String defaultValue,
String validChars)
StringSetting
public StringSetting(SettingResource backend,
String key,
String defaultValue,
Validator validator)
StringSetting
public StringSetting(SettingResource backend,
String key,
String defaultValue)
fromString
protected String fromString(String value)
- Description copied from class:
AbstractSetting
- Sets the value of the setting from s.
- Specified by:
fromString
in class AbstractSetting<String>
toString
protected String toString(String 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<String>
- See Also:
AbstractSetting.toString(java.lang.Object)
Copyright © 2004-2007 XNap Commons Team. All Rights Reserved.