jApp
Class BooleanVariable

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

public class BooleanVariable
extends Variable

A convenience class


Field Summary
 
Fields inherited from class jApp.Variable
m_Value
 
Fields inherited from interface jApp.ValueInterface
VALUE_VALID
 
Constructor Summary
BooleanVariable()
           
BooleanVariable(boolean v)
           
 
Method Summary
 void setValue(boolean value)
           
 void setValue(java.lang.Object 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, 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

BooleanVariable

public BooleanVariable(boolean v)

BooleanVariable

public BooleanVariable()
Method Detail

setValue

public void setValue(boolean value)

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface ValueInterface
Overrides:
setValue in class Variable

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