com.raelity.jvi
Class IntegerOption

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

public class IntegerOption
extends Option


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

Field Detail

value

protected int value
Constructor Detail

IntegerOption

public IntegerOption(String key,
                     int defaultValue)

IntegerOption

public IntegerOption(String key,
                     int defaultValue,
                     IntegerOption.Validator validator)
Method Detail

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