|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub<Page> cmu.survey.editor.data.table.SurveyTable
public class SurveyTable
Nested Class Summary | |
---|---|
class |
SurveyTable.ReorderablePage
|
Nested classes/interfaces inherited from class org.browsecode.helpers.reorderablelistpanel.ReorderableListModelWithOrderIndexStub |
---|
ReorderableListModelWithOrderIndexStub.ReorderableObject<E2> |
Field Summary | |
---|---|
protected java.util.Vector<Page> |
deletedPages
|
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<Page>> |
pages
|
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 | |
---|---|
SurveyTable(java.util.Vector<Page> pagesLoaded,
DataBitStorageTable tableStorage)
|
Method Summary | |
---|---|
protected void |
deleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> 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 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<Page>> |
getItemsVector()
Should return a non-cloned version of the list of items -- the vector will be changed to reflect the order, etc. |
Page |
getNewItem()
Creates a new item for the list, but does not insert it into the list. |
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> |
getNewItem(int indexAt)
Should not insert item, but should get a new one and return it. |
Page |
getNewPage()
|
QuestionDataBitSet |
getNewQuestion(java.lang.String type,
boolean scaleChoices)
|
java.util.List<Page> |
getPages()
|
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> |
getReorderableObjectFor(Page reorderableItem)
|
DataBitStorageTable |
getTableStorage()
|
boolean |
hasBeenModified()
|
boolean |
isLoginPage(Page page)
Generally returns whether this is the first page in the list. |
boolean |
save()
Returns false if it does not save correctly, or if there was an error in saving. |
protected boolean |
undeleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> aboutToUndelete)
Undelete an item that was just deleted using deleteItem(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cmu.survey.editor.data.Survey |
---|
addUndoableEditListener, removeUndoableEditListener |
Methods inherited from interface org.browsecode.helpers.reorderablelistpanel.ReorderableListModel |
---|
addReorderableChangeListener, canItemBeMovedElsewhere, deleteItem, getItemCount, insertNewItemAt, iterator, moveItemElsewhere, moveItemToIndex, removeReorderableChangeListener |
Field Detail |
---|
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<Page>> pages
protected java.util.Vector<Page> deletedPages
Constructor Detail |
---|
public SurveyTable(java.util.Vector<Page> pagesLoaded, DataBitStorageTable tableStorage)
Method Detail |
---|
public DataBitStorageTable getTableStorage()
public boolean hasBeenModified()
hasBeenModified
in interface Survey
protected java.util.Vector<ReorderableListModelWithOrderIndexStub.ReorderableObject<Page>> getItemsVector()
ReorderableListModelWithOrderIndexStub
getItemsVector
in class ReorderableListModelWithOrderIndexStub<Page>
protected java.lang.String getItemsName()
ReorderableListModelWithOrderIndexStub
getItemsName
in class ReorderableListModelWithOrderIndexStub<Page>
public java.util.List<Page> getPages()
getPages
in interface Survey
public boolean isLoginPage(Page page)
Survey
isLoginPage
in interface Survey
protected void deleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> justDeleted)
ReorderableListModelWithOrderIndexStub
deleteItem
in class ReorderableListModelWithOrderIndexStub<Page>
protected boolean undeleteItem(ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> aboutToUndelete)
ReorderableListModelWithOrderIndexStub
undeleteItem
in class ReorderableListModelWithOrderIndexStub<Page>
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> getNewItem(int indexAt)
ReorderableListModelWithOrderIndexStub
getNewItem
in class ReorderableListModelWithOrderIndexStub<Page>
public QuestionDataBitSet getNewQuestion(java.lang.String type, boolean scaleChoices)
getNewQuestion
in interface Survey
public Page getNewPage()
getNewPage
in interface Survey
public boolean save()
Survey
save
in interface Survey
public Page getNewItem()
ReorderableListModelWithOrderIndexStub
getNewItem
in class ReorderableListModelWithOrderIndexStub<Page>
protected ReorderableListModelWithOrderIndexStub.ReorderableObject<Page> getReorderableObjectFor(Page reorderableItem)
getReorderableObjectFor
in class ReorderableListModelWithOrderIndexStub<Page>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |