jApp
Class StringVariable

java.lang.Object
  extended by jApp.Changeable
      extended by jApp.Variable
          extended by jApp.StringVariable
All Implemented Interfaces:
ValueInterface

public class StringVariable
extends Variable


Field Summary
 
Fields inherited from class jApp.Variable
m_Value
 
Fields inherited from interface jApp.ValueInterface
VALUE_VALID
 
Constructor Summary
StringVariable()
           
StringVariable(java.lang.String v)
           
 
Method Summary
 void setValue(java.lang.String value)
           
 int validate(java.lang.Object value)
          Validates the value and returns a constant describing the result
 
Methods inherited from class jApp.Variable
booleanValue, doubleValue, getValue, intValue, isEnabled, longValue, numberOfValues, readVariables, setEnabled, setValue, showAlertDialog, stringValue, valueEquals, writeVariables
 
Methods inherited from class jApp.Changeable
addChangeListener, fireChangeEvent, removeChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jApp.ValueInterface
addChangeListener, removeChangeListener
 

Constructor Detail

StringVariable

public StringVariable(java.lang.String v)

StringVariable

public StringVariable()
Method Detail

setValue

public void setValue(java.lang.String value)

validate

public int validate(java.lang.Object value)
Description copied from class: Variable
Validates the value and returns a constant describing the result

Specified by:
validate in interface ValueInterface
Overrides:
validate in class Variable
Parameters:
value - the value to validate
Returns:
by default returns ValueInterface.VALUE_VALID