public class MultipleIntervalAnswerQuestionUI extends MCBasicQuestionUI
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ANSWER_ASSERTION_SUBPATH, ANSWER_EXPLANATION_SUBPATH, ANSWER_FIELD_SUBPATH, ANSWER_PRECISION_SUBPATH, ANSWER_PREFIX, ANSWER_SOLUTION_SUBPATH, ANSWER_SUBPATH, AUTOCREATED_AFTER_NEW_DATA_PATH, CHECK_AS_FUNCTION_SUBPATH, CHECK_FUNC_FOR_ZERO_SUBPATH, CORRECTED_FLAG_PATH, CUSTOM_ANSWER_TYPE, DEFAULT_WORK_CYCLE_MODE, DEFAULT_WORK_CYCLE_MODE_PARAM, DEPENDENT_VARIABLE_NAME, EARLIER_ANSWER_SUBPATH, EDITED_FLAG_SUBPATH, FEEDBACK_WORK_CYCLE_MODE, FEEDBACK_WORK_CYCLE_MODE_PARAM, FUNCTION_ACTION_SUBPATH, FUNCTION_CALCULATE_ACTION, FUNCTION_CALCULATE_ACTION_NAME, FUNCTION_CONTENT_SUBPATH, FUNCTION_DERIVATIVE_ACTION, FUNCTION_DERIVATIVE_ACTION_NAME, FUNCTION_EXPAND_ACTION, FUNCTION_EXPAND_ACTION_NAME, FUNCTION_NORMALIZE_SUBPATH, FUNCTION_REPLACE_ACTION, FUNCTION_REPLACE_ACTION_NAME, FUNCTION_SUBSTITUTE_ACTION, FUNCTION_SUBSTITUTE_ACTION_NAME, FUNCTION_UNKNOWN_ACTION, INPUT_AS_FUNCTION_SUBPATH, LOCAL_WORK_CYCLE_MODE_PARAM, METHOD_NAME_SUBPATH, METHOD_PREFIX, MULTIPLE_ANSWER_TYPE, MULTIPLE_ANSWER_TYPE_NAME, PROBLEM_DEMO_TYPE, PROBLEM_EXERCISE_TYPE, PROBLEM_TRAINING_TYPE, QUESTION_PREFIX, QUESTION_SEQUENCE_END, QUESTION_SEQUENCE_PREFIX, QUESTION_SEQUENCE_SCORE_FACTOR, QUESTION_SEQUENCE_START, QUESTION_SEQUENCES_PREFIX, QUESTION_TASK_SUBPATH, QUESTION_TYPE_SUBPATH, QUESTIONS_SELECTION_PREFIX, SCORE_SUBPATH, SOLUTION_COMPUTE, SOLUTION_COMPUTE_TYPE_NAME, SOLUTION_FALSE, SOLUTION_FALSE_TYPE_NAME, SOLUTION_NONE, SOLUTION_NONE_TYPE_NAME, SOLUTION_TRUE, SOLUTION_TRUE_TYPE_NAME, SOLUTION_UNKNOWN, SUBSTITUTE_IDENTIFIER_NAME, SUBSTITUTE_WITH_NAME, SUBTASK_CORRECT_SUBPATH, SUBTASK_TRIES_SUBPATH, TEXT_ANSWER_PREFIX, TEXT_ANSWER_TYPE, TEXT_ANSWER_TYPE_NAME, UNIQUE_ANSWER_TYPE, UNIQUE_ANSWER_TYPE_NAME, UNKNOWN_ANSWER_TYPE, VARIABLE_FIELD_SUBPATH, VARIABLE_POOL_INDEX_SUBPATH, VARIABLE_POOL_NAME_PREFIX_SUBPATH, VARIABLE_POOL_SUBPATH, VARIABLE_PRECISION_SUBPATH, VARIABLE_SUBPATH, WORK_CYCLE_MODE_PATH, YESNO_ANSWER_TYPE, YESNO_ANSWER_TYPE_NAME
APPLET_ID_PARAM, COMMON_PROBLEM_PATH, CORRECTOR_CLASS_PARAM, CORRECTOR_FILE_PARAM, COURSE_ID_PARAM, CURRENT_SUBTASK_PATH, DIMENSION_PATH, EXERCISE_DEFAULT_TYPE, EXERCISE_DEFAULT_TYPE_NAME, EXERCISE_MC_TYPE, EXERCISE_MC_TYPE_NAME, EXERCISE_TEXT_TYPE, EXERCISE_TEXT_TYPE_NAME, EXERCISE_TYPE_PATH, FIELD_PATH, GENERIC_USER_ANSWER_PATH, HOMEWORK_EDITABLE_PARAM, HOMEWORK_MODE_PARAM, HOMEWORK_STANDALONE_PARAM, INPUT_DATASHEET_PARAM, JSQ_SUBTASK_PREFIX, LOCAL_DEBUG_MODE, LOCAL_PREVIEW_MODE, OUTPUT_DATASHEET_PARAM, PATH_SEPARATOR, PROBLEM_ID_PARAM, PROBLEM_REF_PARAM, PROGRESS_SUBPATH, Q_SUBTASK_PREFIX, REMOTE_JAPS_MODE, SAVE_ANSWERS_PATH_PARAM, SELECTION_PREFIX, SHOW_SAVING_SUCCESSFUL_DIALOG, SUBTASK_PATH, SUBTASK_PREFIX, URL_PREFIX_PARAM, USER_ANSWER_PATH, USER_MARKING_PATH, USER_META_ANSWER_PATH, USER_PROBLEM_PATH, USER_SCORE_PATH, WORKSHEET_ID_PARAM
Constructor and Description |
---|
MultipleIntervalAnswerQuestionUI() |
Modifier and Type | Method and Description |
---|---|
void |
addStatusComponent(java.awt.Component c)
Adds the given status component to the layout of this question.
|
void |
clearAnswers()
Notifies this question UI to reset all user answers.
|
boolean |
collectAnswers()
Notifies this question UI to save all user answers.
|
void |
init(MCQuestionIF question,
boolean isEditable)
Initializes the internal fields of this question UI.
|
void |
initQuestion()
Initializes all necessary GUI elements of this question UI.
|
void |
loadAnswers()
Notifies this question UI to load any previously saved answers.
|
void |
removeStatusComponent(java.awt.Component c)
Removes the given status component from the layout of this question.
|
addExplanationComponent, addExplanations, createMMNumber, createTextComponent, getExercise, getNumberClass, getPrecision, getQuestion, getQuestionIndex, getUIComponent, isEditable, removeExplanationComponent, setAnswer, setAnswersCompleted, setFeedbackVisible, setTask, setTask, setTask, setTask
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void init(MCQuestionIF question, boolean isEditable)
MCQuestionUIIF
init
in interface MCQuestionUIIF
init
in class MCBasicQuestionUI
question
- the question instanceisEditable
- flag whether this question UI should be editablepublic void initQuestion()
MCQuestionUIIF
public void loadAnswers()
MCQuestionUIIF
public void clearAnswers()
MCQuestionUIIF
public boolean collectAnswers()
MCQuestionUIIF
public void addStatusComponent(java.awt.Component c)
MCBasicQuestionUI
addStatusComponent
in class MCBasicQuestionUI
c
- a componentpublic void removeStatusComponent(java.awt.Component c)
MCBasicQuestionUI
removeStatusComponent
in class MCBasicQuestionUI
c
- a componentFurther documentation and examples can be found under www.mathletfactory.de.