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