|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet> cmu.survey.editor.data.sql.ChoicesDataBitSetSQL
public class ChoicesDataBitSetSQL
Nested Class Summary | |
---|---|
class |
ChoicesDataBitSetSQL.ReorderableChoice
|
Nested classes/interfaces inherited from class org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub |
---|
ReorderableListModelWithOrderIndexStub.ReorderableObject<E2> |
Field Summary | |
---|---|
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet>> |
choices
|
Fields inherited from class org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub |
---|
ABSTRACTION_ERROR, undoableEditListeners |
Fields inherited from interface org.browsecode.helpers.reorderablelistpanel.ReorderableListModel |
---|
INSERTED_FROM_DELETED_HERE, INSERTED_FROM_ELSEWHERE |
Constructor Summary | |
---|---|
ChoicesDataBitSetSQL(CopyingNumberDataBit questionIDLoadedFrom,
StringDataBit type,
IntegerDataBit numberOfChoices,
DataBitStorageSQL theLoader)
|
Method Summary | |
---|---|
boolean |
canItemBeMovedElsewhere()
Removed means can it be moved to somewhere else, NOT deleted -- it must always be deletable. |
ChoicesDataBitSetSQL |
copyTo(AuxillaryQuestionPartSQLStub parentPart)
|
java.lang.Object |
copyTo(java.lang.Object parent)
Make a copy for use in the new parent. |
ChoicesDataBitSetSQL |
copyTo(QuestionDataBitSetSQL parentQuestion)
|
protected void |
deleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet> justDeleted)
If an object is deleted from the list, this method is fired and should be used to keep track of which items should not be saved anymore and deleted when this set is saved. |
boolean |
equals(java.lang.Object compareMe)
|
protected void |
fireUndoableEdit(javax.swing.undo.UndoableEdit edit)
|
IntegerDataBit |
getCacheRandomizeOrder()
|
java.util.Vector<OneChoiceDataBitSet> |
getChoices()
DO NOT modify the Vector after you get it! |
protected java.lang.String |
getItemsName()
For undos and presentation names -- so we can say what we're moving/deleting/inserting |
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet>> |
getItemsVector()
Should return a non-cloned version of the list of items -- the vector will be changed to reflect the order, etc. |
java.util.Vector<OneChoiceDataBitSet> |
getNewChoicesCopy()
|
OneChoiceDataBitSet |
getNewItem()
Creates a new item for the list, but does not insert it into the list. |
IntegerDataBit |
getNumberOfChoices()
The number of scale choices there are (i.e. this number shows whether it's 1-3 or 1-5, etc). |
IntegerDataBit |
getNumberOfChoicesDontThrowError()
The same as getNumberOfChoices() but it ignores whether or not it's a CHOICE_SCALE -- only use this if you want to know what the choices are when you know it's a CHOICE_LIST |
int |
getNumQuestionsUsingThisSet()
|
IntegerDataBit |
getRandomizeOrder()
|
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet> |
getReorderableObjectFor(OneChoiceDataBitSet reorderableItem)
|
StringDataBit |
getType()
|
boolean |
hasBeenModified()
|
Moveable |
moveTo(java.lang.Object newParent)
Move to the new parent. |
ChoicesDataBitSetSQL |
moveTo(QuestionDataBitSetSQL newParent)
|
boolean |
save()
|
void |
setNumQuestionsUsingThisSet(int i)
|
boolean |
shouldFireUndoableEdits()
Also public for other classes that want to use the same list of undoableEditListeners. |
java.lang.String |
toString()
|
protected boolean |
undeleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet> aboutToUndelete)
Undelete an item that was just deleted using deleteItem(). |
Methods inherited from class org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub |
---|
addReorderableChangeListener, addUndoableEditListener, deleteItem, deleteItemProtected, fireUndoableEdit, getHasBeenChanged, getItemCount, getNewItem, getVectorOfReorderableItems, insertNewItemAt, insertNewItemAtProtected, iterator, moveItemElsewhere, moveItemElsewhereProtected, moveItemToIndex, moveItemToIndexProtected, removeReorderableChangeListener, removeUndoableEditListener, resetHasBeenChanged, setCachedReorderableItems |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.browsecode.helpers.reorderablelistpanel.ReorderableListModel |
---|
addReorderableChangeListener, deleteItem, getItemCount, insertNewItemAt, iterator, moveItemElsewhere, moveItemToIndex, removeReorderableChangeListener |
Field Detail |
---|
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet>> choices
Constructor Detail |
---|
public ChoicesDataBitSetSQL(CopyingNumberDataBit questionIDLoadedFrom, StringDataBit type, IntegerDataBit numberOfChoices, DataBitStorageSQL theLoader)
Method Detail |
---|
public boolean save()
public boolean hasBeenModified()
hasBeenModified
in interface DataBitSet
public java.util.Vector<OneChoiceDataBitSet> getChoices()
getChoices
in interface ChoicesDataBitSet
public int getNumQuestionsUsingThisSet()
getNumQuestionsUsingThisSet
in interface ChoicesDataBitSet
public void setNumQuestionsUsingThisSet(int i)
i
- protected java.lang.String getItemsName()
ReorderableListModelWithOrderIndexStub
getItemsName
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet>> getItemsVector()
ReorderableListModelWithOrderIndexStub
getItemsVector
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
protected void deleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet> justDeleted)
ReorderableListModelWithOrderIndexStub
deleteItem
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
protected boolean undeleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet> aboutToUndelete)
ReorderableListModelWithOrderIndexStub
undeleteItem
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
public OneChoiceDataBitSet getNewItem()
ReorderableListModelWithOrderIndexStub
getNewItem
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
public boolean canItemBeMovedElsewhere()
ReorderableListModel
canItemBeMovedElsewhere
in interface ReorderableListModel<OneChoiceDataBitSet>
canItemBeMovedElsewhere
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
public boolean equals(java.lang.Object compareMe)
equals
in class java.lang.Object
public ChoicesDataBitSetSQL copyTo(QuestionDataBitSetSQL parentQuestion)
public ChoicesDataBitSetSQL copyTo(AuxillaryQuestionPartSQLStub parentPart)
public java.lang.Object copyTo(java.lang.Object parent)
Copyable
copyTo
in interface Copyable
public java.util.Vector<OneChoiceDataBitSet> getNewChoicesCopy()
getNewChoicesCopy
in interface ChoicesDataBitSet
public ChoicesDataBitSetSQL moveTo(QuestionDataBitSetSQL newParent)
public Moveable moveTo(java.lang.Object newParent)
Moveable
moveTo
in interface Moveable
public StringDataBit getType()
getType
in interface ChoicesDataBitSet
public IntegerDataBit getNumberOfChoices()
ChoicesDataBitSet
getNumberOfChoices
in interface ChoicesDataBitSet
public IntegerDataBit getNumberOfChoicesDontThrowError()
ChoicesDataBitSet
getNumberOfChoicesDontThrowError
in interface ChoicesDataBitSet
public IntegerDataBit getRandomizeOrder()
getRandomizeOrder
in interface ChoicesDataBitSet
public IntegerDataBit getCacheRandomizeOrder()
getCacheRandomizeOrder
in interface ChoicesDataBitSet
public java.lang.String toString()
toString
in class java.lang.Object
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<OneChoiceDataBitSet> getReorderableObjectFor(OneChoiceDataBitSet reorderableItem)
getReorderableObjectFor
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
public boolean shouldFireUndoableEdits()
ReorderableListModelWithOrderIndexStub
shouldFireUndoableEdits
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
protected void fireUndoableEdit(javax.swing.undo.UndoableEdit edit)
fireUndoableEdit
in class ReorderableListModelWithOrderIndexStub<OneChoiceDataBitSet>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |