com.raelity.jvi
Class BooleanOption
java.lang.Object
com.raelity.jvi.Option
com.raelity.jvi.BooleanOption
public class BooleanOption
- extends Option
Methods inherited from class com.raelity.jvi.Option |
getColor, getDefault, getDesc, getDisplayName, getInteger, 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 |
BooleanOption
public BooleanOption(String key,
boolean defaultValue)
BooleanOption
public BooleanOption(String key,
boolean defaultValue,
BooleanOption.Validator validator)
getBoolean
public final boolean getBoolean()
- Overrides:
getBoolean
in class Option
setBoolean
public void setBoolean(boolean 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(boolean val)
throws PropertyVetoException
- Overrides:
validate
in class Option
- Throws:
PropertyVetoException