UniVista.beans
Class LongVariable

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

public class LongVariable
extends VariableBean

A Bean used to hold and handle editing of Long 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
LongVariable()
          creates a default Long object defaulted to 0
LongVariable(long initialVal)
          creates a Long initialized to the argument
 
Method Summary
 java.lang.Object clone()
          adds replication of the values of the Long
 void duplicate(LongVariable toDup)
          adds duplication of the Long 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 Long
 java.lang.Object getValue()
          Exports the value of the object.
 void setValue(long newLong)
          Import a value with the native datatype.
 void setValue(java.lang.Object obj)
          Imports the value as an Object, which should be castable to Long.
 void setValue(java.lang.String newLong)
          Set the value with the String form of the Long value.
 java.lang.String toString()
          convert the object to a string format
 java.lang.String valOk(java.lang.String newLong)
           
 
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

LongVariable

public LongVariable()
creates a default Long object defaulted to 0

LongVariable

public LongVariable(long initialVal)
creates a Long initialized to the argument
Method Detail

clone

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

duplicate

public void duplicate(LongVariable toDup)
adds duplication of the Long 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 Long
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(long newLong)
Import a value with the native datatype.

setValue

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

setValue

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

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 newLong)
Overrides:
valOk in class VariableBean