net.sourceforge.webcompmath.data.beans
Class WCMVariableBean

java.lang.Object
  extended by net.sourceforge.webcompmath.data.Constant
      extended by net.sourceforge.webcompmath.data.Variable
          extended by net.sourceforge.webcompmath.data.beans.WCMVariableBean
All Implemented Interfaces:
java.io.Serializable, ParserMathObject, Expression, ExpressionCommand, MathObject, Value

public class WCMVariableBean
extends Variable
implements ParserMathObject

This class is for use with GUI builders. It currently does nothing.

Author:
Tom Downey
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.webcompmath.data.Constant
value
 
Constructor Summary
WCMVariableBean()
          Default constructor.
WCMVariableBean(java.lang.String name)
          Create a variable with the given name.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Just pass through to the support class
 MathObject getMathObject()
          Just returns itself.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          just pass through to the support class )
 void setName(java.lang.String name)
          Fire a property change event if the name changes.
 
Methods inherited from class net.sourceforge.webcompmath.data.Variable
compileDerivative, dependsOn, derivative, setVal, toString
 
Methods inherited from class net.sourceforge.webcompmath.data.Constant
appendOutputString, apply, extent, getName, getVal, getValueWithCases
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.webcompmath.data.MathObject
getName
 

Constructor Detail

WCMVariableBean

public WCMVariableBean()
Default constructor.


WCMVariableBean

public WCMVariableBean(java.lang.String name)
Create a variable with the given name.

Parameters:
name -
Method Detail

getMathObject

public MathObject getMathObject()
Just returns itself.

Specified by:
getMathObject in interface ParserMathObject
Returns:
the MathObject that will be added to a parser
See Also:
ParserMathObject.getMathObject()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Just pass through to the support class

Specified by:
addPropertyChangeListener in interface ParserMathObject
See Also:
ParserMathObject.addPropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
just pass through to the support class )

Specified by:
removePropertyChangeListener in interface ParserMathObject
See Also:
ParserMathObject.removePropertyChangeListener(java.beans.PropertyChangeListener)

setName

public void setName(java.lang.String name)
Fire a property change event if the name changes.

Specified by:
setName in interface MathObject
Overrides:
setName in class Constant
Parameters:
name - name of the constant
See Also:
Constant.setName(java.lang.String)