cmu.survey.data.databits
Class GenericNumberDataBit<T extends java.lang.Number>

java.lang.Object
  extended by cmu.survey.data.databits.DataBit<T>
      extended by cmu.survey.data.databits.GenericNumberDataBit<T>
All Implemented Interfaces:
java.lang.Cloneable, CloneablePublicly, CanAddPropertyChangeListener
Direct Known Subclasses:
DoubleDataBit, IntegerDataBit

public abstract class GenericNumberDataBit<T extends java.lang.Number>
extends DataBit<T>


Field Summary
 
Fields inherited from class cmu.survey.data.databits.DataBit
lastSavedValue, propertyChangeSupport
 
Constructor Summary
GenericNumberDataBit(java.lang.String dataFieldName)
           
GenericNumberDataBit(java.lang.String dataFieldName, T startValue)
           
 
Method Summary
 java.lang.Number getValueAsNumber()
          You should make sure to only set this with the right type for the subclass -- if you fail, it will throw an exception.
 
Methods inherited from class cmu.survey.data.databits.DataBit
addPropertyChangeListener, clone, copy, getLastSavedValue, getName, getValue, hasBeenModified, isEditable, removePropertyChangeListener, setEditable, setHasBeenModified, setHasBeenModified, setLastSavedObjectValue, setLastSavedValue, setValue, setValueGetUndo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericNumberDataBit

public GenericNumberDataBit(java.lang.String dataFieldName)
Parameters:
dataFieldName -

GenericNumberDataBit

public GenericNumberDataBit(java.lang.String dataFieldName,
                            T startValue)
Method Detail

getValueAsNumber

public java.lang.Number getValueAsNumber()
You should make sure to only set this with the right type for the subclass -- if you fail, it will throw an exception.

Parameters:
number -