UniVista.beans
Class ShortVariable

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

public class ShortVariable
extends VariableBean

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

ShortVariable

public ShortVariable()
creates a default Short object defaulted to 0

ShortVariable

public ShortVariable(short initialVal)
creates a Short initialized to the argument
Method Detail

clone

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

duplicate

public void duplicate(ShortVariable toDup)
adds duplication of the short 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 short
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 Short.
Overrides:
setValue in class VariableBean
See Also:
TypedVariable

setValue

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

setValue

public void setValue(short newShort)
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