|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub<QuestionDataBitSet> cmu.survey.editor.data.table.PageTable
public class PageTable
Nested Class Summary | |
---|---|
class |
PageTable.ReorderableTableQuestion
|
Nested classes/interfaces inherited from class org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub |
---|
ReorderableListModelWithOrderIndexStub.ReorderableObject<E2> |
Field Summary | |
---|---|
protected StringDataBit |
answersTable
|
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet>> |
deletedQuestions
|
protected StringDataBit |
name
|
protected IntegerDataBit |
orderIndex
|
protected IntegerDataBit |
pageNum
|
protected DataTableModel |
pageTableModel
|
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet>> |
questions
|
protected StringDataBit |
repeatedMeasure
|
protected StringDataBit |
submitButtonLabel
|
protected DataBitStorageTable |
tableStorage
|
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 | |
---|---|
PageTable(java.lang.Integer pageNumber,
DataBitStorageTable storage)
|
|
PageTable(java.lang.Integer pageNumber,
DataBitStorageTable storage,
java.lang.Integer orderIndex,
java.lang.String name,
java.lang.String answersTable,
java.lang.String submitButtonLabel,
java.lang.String repeatedMeasure)
|
Method Summary | |
---|---|
java.lang.Object |
copyTo(java.lang.Object newParent)
Make a copy for use in the new parent. |
PageTable |
copyTo(SurveyTable parentSurvey)
|
protected void |
deleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> 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. |
protected void |
fireUndoableEdit(javax.swing.undo.UndoableEdit edit)
|
protected java.util.Vector<DataBit> |
getDataBits()
|
java.lang.Integer |
getID()
|
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<QuestionDataBitSet>> |
getItemsVector()
Should return a non-cloned version of the list of items -- the vector will be changed to reflect the order, etc. |
StringDataBit |
getName()
|
QuestionDataBitSet |
getNewItem()
Creates a new item for the list, but does not insert it into the list. |
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> |
getNewItem(int indexAt)
Overridden in order to add scales below scale headers and scales automatically. |
IntegerDataBit |
getOrderIndex()
|
IntegerDataBit |
getPageID()
|
java.util.Vector |
getQuestions()
Get a Vector of QuestionDataBitSet, the questions on the page. |
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> |
getReorderableObjectFor(QuestionDataBitSet reorderableItem)
|
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> |
getReorderableObjectFor(QuestionDataBitSet reorderableItem,
java.lang.Integer orderIndex,
java.lang.Integer uniqueRowId)
|
StringDataBit |
getRepeatedMeasureTable()
Get the name of the table with the repeated measures in it, if there is a table with the repeated measures in it. |
StringDataBit |
getSubmitButtonLabel()
|
StringDataBit |
getTableName()
|
boolean |
hasBeenModified()
|
boolean |
hasBeenModifiedWithoutQuestions()
|
boolean |
isNew()
|
protected void |
loadQuestionsIfNecessary()
|
boolean |
moveItemElsewhere(QuestionDataBitSet item,
int oldIndex)
Removed means it was moved to somewhere else, NOT deleted. |
Moveable |
moveTo(java.lang.Object newParent)
Move to the new parent. |
PageTable |
moveTo(SurveyTable parentSurvey)
|
boolean |
save()
|
boolean |
saveDeletePage()
Call when saving to delete the page |
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<QuestionDataBitSet> aboutToUndelete)
Undelete an item that was just deleted using deleteItem(). |
Methods inherited from class org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub |
---|
addReorderableChangeListener, addUndoableEditListener, canItemBeMovedElsewhere, deleteItem, deleteItemProtected, fireUndoableEdit, getHasBeenChanged, getItemCount, getVectorOfReorderableItems, insertNewItemAt, insertNewItemAtProtected, iterator, moveItemElsewhereProtected, moveItemToIndex, moveItemToIndexProtected, removeReorderableChangeListener, removeUndoableEditListener, resetHasBeenChanged, setCachedReorderableItems |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.browsecode.helpers.reorderablelistpanel.ReorderableListModel |
---|
addReorderableChangeListener, canItemBeMovedElsewhere, deleteItem, getItemCount, insertNewItemAt, iterator, moveItemToIndex, removeReorderableChangeListener |
Field Detail |
---|
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet>> questions
protected DataBitStorageTable tableStorage
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet>> deletedQuestions
protected IntegerDataBit pageNum
protected IntegerDataBit orderIndex
protected StringDataBit name
protected StringDataBit answersTable
protected StringDataBit submitButtonLabel
protected StringDataBit repeatedMeasure
protected DataTableModel pageTableModel
Constructor Detail |
---|
public PageTable(java.lang.Integer pageNumber, DataBitStorageTable storage)
public PageTable(java.lang.Integer pageNumber, DataBitStorageTable storage, java.lang.Integer orderIndex, java.lang.String name, java.lang.String answersTable, java.lang.String submitButtonLabel, java.lang.String repeatedMeasure)
Method Detail |
---|
protected void loadQuestionsIfNecessary()
protected java.util.Vector<DataBit> getDataBits()
public boolean save()
save
in interface Page
public boolean saveDeletePage()
public boolean hasBeenModifiedWithoutQuestions()
public boolean hasBeenModified()
hasBeenModified
in interface Page
public StringDataBit getName()
getName
in interface Page
public StringDataBit getTableName()
getTableName
in interface Page
public StringDataBit getSubmitButtonLabel()
getSubmitButtonLabel
in interface Page
public StringDataBit getRepeatedMeasureTable()
Page
getRepeatedMeasureTable
in interface Page
public boolean isNew()
isNew
in interface Page
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Vector getQuestions()
Page
getQuestions
in interface Page
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet>> getItemsVector()
ReorderableListModelWithOrderIndexStub
getItemsVector
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
protected java.lang.String getItemsName()
ReorderableListModelWithOrderIndexStub
getItemsName
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> getNewItem(int indexAt)
getNewItem
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
public boolean moveItemElsewhere(QuestionDataBitSet item, int oldIndex)
ReorderableListModel
moveItemElsewhere
in interface ReorderableListModel<QuestionDataBitSet>
moveItemElsewhere
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
protected void deleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> justDeleted)
ReorderableListModelWithOrderIndexStub
deleteItem
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
protected boolean undeleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> aboutToUndelete)
ReorderableListModelWithOrderIndexStub
undeleteItem
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
public QuestionDataBitSet getNewItem()
ReorderableListModelWithOrderIndexStub
getNewItem
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
public IntegerDataBit getOrderIndex()
public IntegerDataBit getPageID()
getPageID
in interface Page
public java.lang.Integer getID()
getID
in interface HasID
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> getReorderableObjectFor(QuestionDataBitSet reorderableItem)
getReorderableObjectFor
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<QuestionDataBitSet> getReorderableObjectFor(QuestionDataBitSet reorderableItem, java.lang.Integer orderIndex, java.lang.Integer uniqueRowId)
public PageTable moveTo(SurveyTable parentSurvey)
public Moveable moveTo(java.lang.Object newParent)
Moveable
moveTo
in interface Moveable
public PageTable copyTo(SurveyTable parentSurvey)
public java.lang.Object copyTo(java.lang.Object newParent)
Copyable
copyTo
in interface Copyable
public boolean shouldFireUndoableEdits()
ReorderableListModelWithOrderIndexStub
shouldFireUndoableEdits
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
protected void fireUndoableEdit(javax.swing.undo.UndoableEdit edit)
fireUndoableEdit
in class ReorderableListModelWithOrderIndexStub<QuestionDataBitSet>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |