com.raelity.jvi
Class BooleanOption

java.lang.Object
  extended by com.raelity.jvi.Option
      extended by com.raelity.jvi.BooleanOption

public class BooleanOption
extends Option


Nested Class Summary
static class BooleanOption.Validator
           
 
Nested classes/interfaces inherited from class com.raelity.jvi.Option
Option.ColorOption
 
Field Summary
 
Fields inherited from class com.raelity.jvi.Option
defaultValue, desc, displayName, fExpert, fHidden, fPropogate, name, stringValue, tags
 
Constructor Summary
BooleanOption(String key, boolean defaultValue)
           
BooleanOption(String key, boolean defaultValue, BooleanOption.Validator validator)
           
 
Method Summary
 boolean getBoolean()
           
 void setBoolean(boolean newValue)
          Set the value of the parameter.
 void setValue(String newValue)
          Set the value as a string.
 void validate(boolean val)
           
 
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
 

Constructor Detail

BooleanOption

public BooleanOption(String key,
                     boolean defaultValue)

BooleanOption

public BooleanOption(String key,
                     boolean defaultValue,
                     BooleanOption.Validator validator)
Method Detail

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