cmu.survey.editor.gui.questions
Class EditQuestion

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by cmu.survey.editor.gui.questions.EditQuestion
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class EditQuestion
extends javax.swing.AbstractAction

See Also:
Serialized Form

Field Summary
static int RADIO_BUTTON_CARD
           
static int SKIP_TYPE_CARD
           
static int START_OF_WIZARD
           
static int VARIABLE_CARD
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
EditQuestion(DataBitStorage objectStorage)
           
EditQuestion(DataBitStorage objectStorage, UndoHandler undoHandler)
           
EditQuestion(SurveyEditorPanel surveyEditorPanel)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void editQuestion(QuestionDataBitSet question, Page page, boolean isNewQuestion, boolean userAlreadyPickedQuestionType)
           
 void editQuestion(QuestionDataBitSet question, Page page, java.lang.Integer index, boolean isNewQuestion, boolean userAlreadyPickedQuestionType)
           
 void editQuestion(QuestionDataBitSet question, Page page, java.lang.Integer index, int stage, boolean isNewQuestion, boolean userAlreadyPickedQuestionType)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_OF_WIZARD

public static final int START_OF_WIZARD
See Also:
Constant Field Values

SKIP_TYPE_CARD

public static final int SKIP_TYPE_CARD
See Also:
Constant Field Values

RADIO_BUTTON_CARD

public static final int RADIO_BUTTON_CARD
See Also:
Constant Field Values

VARIABLE_CARD

public static final int VARIABLE_CARD
See Also:
Constant Field Values
Constructor Detail

EditQuestion

public EditQuestion(DataBitStorage objectStorage)

EditQuestion

public EditQuestion(DataBitStorage objectStorage,
                    UndoHandler undoHandler)

EditQuestion

public EditQuestion(SurveyEditorPanel surveyEditorPanel)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)

editQuestion

public void editQuestion(QuestionDataBitSet question,
                         Page page,
                         java.lang.Integer index,
                         boolean isNewQuestion,
                         boolean userAlreadyPickedQuestionType)

editQuestion

public void editQuestion(QuestionDataBitSet question,
                         Page page,
                         boolean isNewQuestion,
                         boolean userAlreadyPickedQuestionType)

editQuestion

public void editQuestion(QuestionDataBitSet question,
                         Page page,
                         java.lang.Integer index,
                         int stage,
                         boolean isNewQuestion,
                         boolean userAlreadyPickedQuestionType)
Parameters:
question -
page -
stage -
isNewQuestion - -- whether or not this is a new question the user JUST created. If it's new, more stuff will be done automatically.
userAlreadyPickedQuestionType - -- only relevant when isNewQuestion=true