com.raelity.jvi
Class Option

java.lang.Object
  extended by com.raelity.jvi.Option
Direct Known Subclasses:
BooleanOption, IntegerOption, Option.ColorOption, StringOption

public abstract class Option
extends Object


Nested Class Summary
static class Option.ColorOption
           
 
Field Summary
protected  String defaultValue
           
protected  String desc
           
protected  String displayName
           
protected  boolean fExpert
           
protected  boolean fHidden
           
protected  boolean fPropogate
           
protected  String name
           
protected  String stringValue
           
protected  String[] tags
           
 
Constructor Summary
Option(String key, String defaultValue)
           
Option(String key, String defaultValue, boolean doInit)
           
 
Method Summary
 boolean getBoolean()
           
 Color getColor()
           
 String getDefault()
           
 String getDesc()
           
 String getDisplayName()
           
 int getInteger()
           
 String getName()
           
 String getString()
           
 String[] getTags()
           
 String getValue()
           
protected  void initialize()
           
 boolean isExpert()
           
 boolean isHidden()
           
protected  void propogate()
           
 void setExpert(boolean f)
           
 void setHidden(boolean f)
           
abstract  void setValue(String value)
           
 void validate(boolean val)
           
 void validate(Color val)
           
 void validate(int val)
           
 void validate(Object val)
           
 void validate(String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

displayName

protected String displayName

stringValue

protected String stringValue

desc

protected String desc

defaultValue

protected String defaultValue

fExpert

protected boolean fExpert

fHidden

protected boolean fHidden

tags

protected String[] tags

fPropogate

protected boolean fPropogate
Constructor Detail

Option

public Option(String key,
              String defaultValue)

Option

public Option(String key,
              String defaultValue,
              boolean doInit)
Method Detail

initialize

protected void initialize()

setValue

public abstract void setValue(String value)

getValue

public String getValue()

getName

public String getName()

getDefault

public String getDefault()

getDesc

public String getDesc()

getDisplayName

public String getDisplayName()

isExpert

public boolean isExpert()

isHidden

public boolean isHidden()

setHidden

public void setHidden(boolean f)

setExpert

public void setExpert(boolean f)

getTags

public String[] getTags()

propogate

protected void propogate()

getInteger

public int getInteger()

getBoolean

public boolean getBoolean()

getString

public String getString()

getColor

public Color getColor()

validate

public void validate(int val)
              throws PropertyVetoException
Throws:
PropertyVetoException

validate

public void validate(boolean val)
              throws PropertyVetoException
Throws:
PropertyVetoException

validate

public void validate(String val)
              throws PropertyVetoException
Throws:
PropertyVetoException

validate

public void validate(Color val)
              throws PropertyVetoException
Throws:
PropertyVetoException

validate

public void validate(Object val)
              throws PropertyVetoException
Throws:
PropertyVetoException