cmu.survey.data.databits
Class DoubleDataBit

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

public class DoubleDataBit
extends GenericNumberDataBit<java.lang.Double>
implements CloneablePublicly


Field Summary
protected  java.lang.Double lastSavedValue
           
 
Fields inherited from class cmu.survey.data.databits.DataBit
propertyChangeSupport
 
Constructor Summary
DoubleDataBit(java.lang.String dataFieldName)
           
DoubleDataBit(java.lang.String dataFieldName, java.lang.Double startValue)
           
 
Method Summary
 DoubleDataBit copy()
           
 boolean equals(java.lang.Object compareMe)
           
 java.lang.Double getValue()
           
 void setLastSavedValue(java.lang.Double lastSaved)
           
 void setValue(java.lang.Double newValue)
           
 DataBitUndoableEdit<java.lang.Double> setValueGetUndo(java.lang.Double newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class cmu.survey.data.databits.GenericNumberDataBit
getValueAsNumber
 
Methods inherited from class cmu.survey.data.databits.DataBit
addPropertyChangeListener, clone, getLastSavedValue, getName, hasBeenModified, isEditable, removePropertyChangeListener, setEditable, setHasBeenModified, setHasBeenModified, setLastSavedObjectValue
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.browsecode.helpers.CloneablePublicly
clone
 

Field Detail

lastSavedValue

protected java.lang.Double lastSavedValue
Constructor Detail

DoubleDataBit

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

DoubleDataBit

public DoubleDataBit(java.lang.String dataFieldName,
                     java.lang.Double startValue)
Method Detail

getValue

public java.lang.Double getValue()
Overrides:
getValue in class DataBit<java.lang.Double>

setValueGetUndo

public DataBitUndoableEdit<java.lang.Double> setValueGetUndo(java.lang.Double newValue)
Overrides:
setValueGetUndo in class DataBit<java.lang.Double>

setValue

public void setValue(java.lang.Double newValue)
Overrides:
setValue in class DataBit<java.lang.Double>

setLastSavedValue

public void setLastSavedValue(java.lang.Double lastSaved)
Overrides:
setLastSavedValue in class DataBit<java.lang.Double>

toString

public java.lang.String toString()
Overrides:
toString in class DataBit<java.lang.Double>

copy

public DoubleDataBit copy()
Specified by:
copy in class DataBit<java.lang.Double>

equals

public boolean equals(java.lang.Object compareMe)
Overrides:
equals in class java.lang.Object