com.raelity.jvi
Class Option.ColorOption
java.lang.Object
com.raelity.jvi.Option
com.raelity.jvi.Option.ColorOption
- Enclosing class:
- Option
public static class Option.ColorOption
- extends Option
Methods inherited from class com.raelity.jvi.Option |
getBoolean, 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 |
Option.ColorOption
public Option.ColorOption(String key,
Color defaultValue)
Option.ColorOption
public Option.ColorOption(String key,
Color defaultValue,
boolean permitNull,
Option.ColorOption.Validator validator)
getColor
public final Color getColor()
- Overrides:
getColor
in class Option
isPermitNull
public boolean isPermitNull()
decode
public final Color decode(String s)
xformToString
public static String xformToString(Color c)
setColor
public void setColor(Color 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(Color val)
throws PropertyVetoException
- Overrides:
validate
in class Option
- Throws:
PropertyVetoException