com.raelity.jvi
Class IntegerOption
java.lang.Object
com.raelity.jvi.Option
com.raelity.jvi.IntegerOption
public class IntegerOption
- extends Option
Field Summary |
protected int |
value
|
Methods inherited from class com.raelity.jvi.Option |
getBoolean, getColor, getDefault, getDesc, getDisplayName, getName, getString, getTags, getValue, initialize, isExpert, isHidden, propogate, setExpert, setHidden, validate, validate, validate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected int value
IntegerOption
public IntegerOption(String key,
int defaultValue)
IntegerOption
public IntegerOption(String key,
int defaultValue,
IntegerOption.Validator validator)
getInteger
public final int getInteger()
- Overrides:
getInteger
in class Option
setInteger
public void setInteger(int newValue)
- Set the value of the parameter.
setValue
public void setValue(String newValue)
throws IllegalArgumentException
- Set the value as a string.
- Specified by:
setValue
in class Option
- Throws:
IllegalArgumentException
validate
public void validate(int val)
throws PropertyVetoException
- Validate the setting value.
- Overrides:
validate
in class Option
- Throws:
PropertyVetoException