UniVista.beans
Class ComplexVariable

java.lang.Object
  |
  +--UniVista.support.Variable
        |
        +--UniVista.beans.VariableBean
              |
              +--UniVista.beans.ComplexVariable
All Implemented Interfaces:
java.lang.Cloneable, ConsistencyCheck, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable, TypedVariable

public class ComplexVariable
extends VariableBean

A Bean used to hold and handle editing of Complex values inside of codes.

See Also:
Serialized Form

Fields inherited from class UniVista.beans.VariableBean
changeSupport, DEFAULT_DISPLAY, vetoSupport
 
Fields inherited from class UniVista.support.Variable
description, documentationURL, name, namelistGroup, type, typedVariable, typeNames, UV_ARRAY, UV_BOOLEAN, UV_COMPLEX, UV_FLOAT, UV_LONG, UV_SHORT, UV_STRING, UV_TYPE, variableOptionsUI, variableUI
 
Constructor Summary
ComplexVariable()
          creates a default Complex object defaulted to 0
ComplexVariable(Complex initialVal)
          creates a Complex initialized to the argument
 
Method Summary
 java.lang.Object clone()
          adds replication of the values of the Complex
 void duplicate(ComplexVariable toDup)
          adds duplication of the Complex value
 void duplicate(Variable toDup)
          duplicate the information from another Variable into this one
 boolean equals(java.lang.Object obj)
          adds comparison of the values of the Complex
 java.lang.Object getValue()
          Exports the value of the object.
 void setValue(Complex newComplex)
          Import a value with the native datatype.
 void setValue(java.lang.Object obj)
          Imports the value as an Object, which should be castable to Complex.
 void setValue(java.lang.String newComplex)
          Set the value with the String form of the Complex value.
 java.lang.String toString()
          convert the object to a string format
 java.lang.String valOk(java.lang.String theValue)
           
 
Methods inherited from class UniVista.beans.VariableBean
addDisplayBean, addPropertyChangeListener, addVetoableChangeListener, duplicate, getDisplayBean, getDisplayBeans, propertyChange, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setDisplayBeans, setDisplayBeans, setDocumentationURL, setName, setNamelistGroup, setType
 
Methods inherited from class UniVista.support.Variable
consistencyCheck, getDescription, getDocumentationURL, getName, getNamelistGroup, getType, isLowerBoundEnabled, isTypedVariable, isUpperBoundEnabled, isVariableOptionsUI, isVariableUI, setLowerBound, setLowerBoundEnabled, setUpperBound, setUpperBoundEnabled
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComplexVariable

public ComplexVariable()
creates a default Complex object defaulted to 0

ComplexVariable

public ComplexVariable(Complex initialVal)
creates a Complex initialized to the argument
Method Detail

clone

public java.lang.Object clone()
adds replication of the values of the Complex
Overrides:
clone in class Variable

duplicate

public void duplicate(ComplexVariable toDup)
adds duplication of the Complex value

duplicate

public void duplicate(Variable toDup)
Description copied from class: Variable
duplicate the information from another Variable into this one
Overrides:
duplicate in class Variable

equals

public boolean equals(java.lang.Object obj)
adds comparison of the values of the Complex
Overrides:
equals in class VariableBean

getValue

public java.lang.Object getValue()
Exports the value of the object.
Overrides:
getValue in class VariableBean
See Also:
TypedVariable

setValue

public void setValue(java.lang.Object obj)
              throws TypedVariableException
Imports the value as an Object, which should be castable to Complex.
Overrides:
setValue in class VariableBean
See Also:
TypedVariable

setValue

public void setValue(java.lang.String newComplex)
Set the value with the String form of the Complex value. An unparsable String will not change the value.
Overrides:
setValue in class VariableBean

setValue

public void setValue(Complex newComplex)
Import a value with the native datatype.

toString

public java.lang.String toString()
convert the object to a string format
Overrides:
toString in class VariableBean

valOk

public java.lang.String valOk(java.lang.String theValue)
Overrides:
valOk in class VariableBean