cmu.survey.editor.data.table
Class OneChoiceDataBitSetStub
java.lang.Object
cmu.survey.editor.data.table.OneChoiceDataBitSetStub
- All Implemented Interfaces:
- DataBitSet, OneChoiceDataBitSet, Copyable, Moveable
public class OneChoiceDataBitSetStub
- extends java.lang.Object
- implements OneChoiceDataBitSet, Copyable, Moveable
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
choice
protected StringDataBit choice
orderIndex
protected IntegerDataBit orderIndex
uniqueRowID
protected java.lang.Integer uniqueRowID
lastQuestionID
protected java.lang.Integer lastQuestionID
OneChoiceDataBitSetStub
public OneChoiceDataBitSetStub()
OneChoiceDataBitSetStub
public OneChoiceDataBitSetStub(StringDataBit choice,
IntegerDataBit orderIndex,
java.lang.Integer uniqueRowID,
java.lang.Integer lastQuestionID)
hasBeenModified
public boolean hasBeenModified()
- Specified by:
hasBeenModified
in interface DataBitSet
- Returns:
- whether the question has been modified since load or if it is new. Basically, it returns whether this DataBitSet needs to be saved.
hasBeenModified
public boolean hasBeenModified(java.lang.Integer questionID)
getLastQuestionID
public java.lang.Integer getLastQuestionID()
setLastQuestionID
public void setLastQuestionID(java.lang.Integer last)
setUniqueRowID
public void setUniqueRowID(java.lang.Integer uniqueID)
getUniqueRowID
public java.lang.Integer getUniqueRowID()
getChoice
public StringDataBit getChoice()
- Specified by:
getChoice
in interface OneChoiceDataBitSet
- Returns:
getOrderIndex
public IntegerDataBit getOrderIndex()
- Specified by:
getOrderIndex
in interface OneChoiceDataBitSet
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object compareMe)
- returns true if compareMe is a oncechoicedatabitset and the choice is the same
- Specified by:
equals
in interface OneChoiceDataBitSet
- Overrides:
equals
in class java.lang.Object
copy
public OneChoiceDataBitSetStub copy()
copyTo
public java.lang.Object copyTo(java.lang.Object newParent)
- Description copied from interface:
Copyable
- Make a copy for use in the new parent. If the new parent (i.e. the ReorderableListPanel) implements HasData, it will call this method with that data -- i.e. oldCopy.copyTo(futureParentReorderableListItemPanel.getData());
- Specified by:
copyTo
in interface Copyable
- Returns:
moveTo
public Moveable moveTo(java.lang.Object newParent)
- Description copied from interface:
Moveable
- Move to the new parent. If the new parent (i.e. the ReorderableListPanel) implements HasData, it will call this method with that data -- i.e. objectToMove.moveTo(futureParentReorderableListItemPanel.getData());
- Specified by:
moveTo
in interface Moveable
- Returns:
changeStorage
public void changeStorage()
isNew
public boolean isNew()
getDataBits
public java.util.List<DataBit> getDataBits()