cmu.survey.editor.data
Interface Survey

All Superinterfaces:
ReorderableListModel<Page>
All Known Implementing Classes:
SurveyTable

public interface Survey
extends ReorderableListModel<Page>

It's a reorderable list of Pages, so it implements ReorderableListener.


Field Summary
 
Fields inherited from interface org.browsecode.helpers.reorderablelistpanel.ReorderableListModel
INSERTED_FROM_DELETED_HERE, INSERTED_FROM_ELSEWHERE
 
Method Summary
 void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
          Registers the given observer to begin receiving notifications when undoable edits are made to the document.
 Page getNewPage()
           
 QuestionDataBitSet getNewQuestion(java.lang.String type, boolean scaleChoices)
           
 java.util.List<Page> getPages()
           
 boolean hasBeenModified()
           
 boolean isLoginPage(Page page)
          Generally returns whether this is the first page in the list.
 void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
          Unregisters the given observer from the notification list so it will no longer receive updates.
 boolean save()
          Returns false if it does not save correctly, or if there was an error in saving.
 
Methods inherited from interface org.browsecode.helpers.reorderablelistpanel.ReorderableListModel
addReorderableChangeListener, canItemBeMovedElsewhere, deleteItem, getItemCount, insertNewItemAt, iterator, moveItemElsewhere, moveItemToIndex, removeReorderableChangeListener
 

Method Detail

hasBeenModified

boolean hasBeenModified()

getPages

java.util.List<Page> getPages()

save

boolean save()
Returns false if it does not save correctly, or if there was an error in saving. (It is assumed to have reported the bug or prompted the user to report a bug).

Returns:

getNewQuestion

QuestionDataBitSet getNewQuestion(java.lang.String type,
                                  boolean scaleChoices)

getNewPage

Page getNewPage()

isLoginPage

boolean isLoginPage(Page page)
Generally returns whether this is the first page in the list.

Parameters:
page -
Returns:

addUndoableEditListener

void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
Registers the given observer to begin receiving notifications when undoable edits are made to the document.

Parameters:
listener - the observer to register
See Also:
UndoableEditEvent

removeUndoableEditListener

void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
Unregisters the given observer from the notification list so it will no longer receive updates.

Parameters:
listener - the observer to register
See Also:
UndoableEditEvent