talx x1.0.5

component
Class TOCTreePanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bydesktop.TrainingPanel
                      extended bycomponent.TOCTreePanel
All Implemented Interfaces:
javax.accessibility.Accessible, ConstraintConstants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, SettingsConstants, SkillLatticeConstants, StateConstants, TrainingComponent

public class TOCTreePanel
extends TrainingPanel
implements ConstraintConstants, StateConstants, SkillLatticeConstants

Panel that displays the table-of-contents.

See Also:
Serialized Form

Nested Class Summary
static class TOCTreePanel.TOCTree
           
 
Nested classes inherited from class desktop.TrainingPanel
TrainingPanel.KeyValue, TrainingPanel.StartSoundThread, TrainingPanel.TaskPropertyMap
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static java.lang.String ACTION_TYPE_GOTO_DOMAINS
          Name of the goto domains button component.
static java.lang.String EMAIL_ICON_TOKEN
          TOCTree icon token representing the email icon.
static java.lang.String HEADING_NAME
          Name of the heading label components.
static java.lang.String HIGHLIGHT_COLOR
          A 24-bit RGB value for color.
static java.lang.String KEY_ICON_TOKEN
          TOCTree icon token representing the key icon.
static java.lang.String MISC_ICON_TOKEN
          TOCTree icon token representing the miscellaneous (unknown) icon.
static java.lang.String MOUSE_ICON_TOKEN
          TOCTree icon token representing the mouse icon.
static java.lang.String OFF_ICON
          The icon to display to when the skill is turned off.
static java.lang.String OFF_TEXT
          The text to display to when the skill is turned off.
static java.lang.String ON_ICON
          The icon to display to when the skill is turned on.
static java.lang.String ON_TEXT
          The text to display to when the skill is turned on.
static java.lang.String SKILL_CONTINUE_CONTROL_TOKEN
          Skill control token representing the continue lesson button.
static java.lang.String SKILL_CONTROL_PANEL_TOKEN
          Skill control token representing the entire control panel.
static java.lang.String SKILL_CONTROLS
          Task Properties key to indicate which selected skill buttons should be showing.
static java.lang.String SKILL_DESCRIPTION
          Task Properties key for the selected skill description.
static java.lang.String SKILL_LABEL_NAME
          Name of the selected skill label components.
static java.lang.String SKILL_REVIEW_CONTROL_TOKEN
          Skill control token representing the review skill button.
static java.lang.String SKILL_SCHEDULING
          Task Properties key to indicate if the skill will be taught or not.
static java.lang.String SKILL_STATUS
          Task Properties key for the selected skill status text.
static java.lang.String SKILL_TRAIN_CONTROL_TOKEN
          Skill control token representing the start lesson button.
static java.lang.String SKILL_TREE
          Task Properties key for the skill tree to display.
static java.lang.String SKILL_TREE_NAME
          Name of the skill tree component.
static java.lang.String SKILL_TREE_SELECTION
          Task Properties key for the skill to display as selected in the tree.
static java.lang.String TITLE_NAME
          Name of the tree title label component.
static java.lang.String TREE_SELECT_ACTION
          Prefix of action command generated when the skills tree is clicked.
 
Fields inherited from class desktop.TrainingPanel
sound
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface constraint.ConstraintConstants
ACTION_COMMAND_KEY, ACTION_TYPE_SOUND_FINISHED, COMPONENT_FINGER_POSITION, COMPONENT_FINGER_PRESS_POSITION, COMPONENT_HORIZONTAL_ARROW_POSITION, COMPONENT_INSTRUCTION_BACKGROUND_COLOR, COMPONENT_INSTRUCTION_TEXT, COMPONENT_INSTRUCTION_TEXT_ATTRIBUTES, COMPONENT_INSTRUCTION_TEXT_COLOR, COMPONENT_INSTRUCTION_TEXT_FONT_FACE, COMPONENT_INSTRUCTION_TEXT_SIZE, COMPONENT_MOUSE_FINGER_POSITION, COMPONENT_SOUND, COMPONENT_SOUND_IS_PLAYING, COMPONENT_SOUND_QUIT, COMPONENT_TIMER, COMPONENT_VERTICAL_ARROW_POSITION, DIALOG, HIDE_BULLSEYE, LESSON_STOP_ACTION, MOUSE_BULLSEYE, MOUSE_FINGER_IMAGE, NO_TOKEN, PREVIOUS_TASK_COMPLETION_REASON, PROGRESS_PANEL_VISIBLITY, SHOW_BULLSEYE, SKIP_TASK_ACTION, TAL_DIALOG, TASK_FAIL_COUNT, TASK_STATUS, TASK_SUCCEED_COUNT, YES_TOKEN
 
Fields inherited from interface controller.StateConstants
ACTION, ACTION_TYPE_CONTINUE, ACTION_TYPE_GOTO, ACTION_TYPE_IGNORE, ACTION_TYPE_PANIC, ACTION_TYPE_QUIT, ACTION_TYPE_RESTART, ACTION_TYPE_REVIEW, ACTION_TYPE_SKIP_DRILL, ACTION_TYPE_SKIP_SKILL, ACTION_TYPE_SKIP_TASK, ACTION_TYPE_TASK_STARTED, ACTION_TYPE_TRAIN, CALLBACK_COMMAND, FIRST_CALLBACK, FOURTH_CALLBACK, SECOND_CALLBACK, THIRD_CALLBACK
 
Fields inherited from interface util.SkillLatticeConstants
ALIAS_ELEMENT, ALIAS_ID_ATTR, ALIAS_SKILL_ATTR, CONSTRAINT_ELEMENT, CONSTRAINT_FINAL_TOKEN, CONSTRAINT_NAME_ATTR, CONSTRAINT_ONGOING_TOKEN, CONSTRAINT_PARAM_ATTR, CONSTRAINT_STARTUP_TOKEN, CONSTRAINT_TYPE_ATTR, DESCRIPTION_ELEMENT, DRILL__RIGHT_PTR_ATTR, DRILL_CRITERIA_ATTR, DRILL_ELEMENT, DRILL_LIMIT_ATTR, DRILL_LIMIT_PTR_ATTR, DRILL_MAX_RETRIES_ATTR, DRILL_SKIPPABLE_ATTR, DRILL_WRONG_PTR_ATTR, MASTERY_CORRECT_TOKEN, MASTERY_INCORRECT_TOKEN, MASTERY_INITIAL_TOKEN, MASTERY_ONCE_TOKEN, MASTERY_OUTOF_REGEX, MASTERY_OUTOF_TOKEN, MASTERY_SEPARATOR_TOKEN, PAUSE_ELEMENT, PAUSE_LEVEL_ATTR, PAUSE_NEXT_PTR_ATTR, ROOT_ELEMENT, SKILL_BASE_DRILL_ATTR, SKILL_ELEMENT, SKILL_ID_ATTR, SKILL_PREREQUISITE_ATTR, SKILL_REFRESH_CRITERIA_ATTR, SKILL_REVIEW_CRITERIA_ATTR, STATUS_ATTEMPTED_TOKEN, STATUS_DATE_FORMAT, STATUS_IRRELEVANT_TOKEN, STATUS_LIMIT_COUNT_FORMAT, STATUS_MASTERED_TOKEN, STATUS_NEVER_ATTEMPTED_TOKEN, STATUS_REVIEWED_FAILED_TOKEN, STATUS_REVIEWED_PASSED_TOKEN, TASK_COMPONENT_ATTR, TASK_ELEMENT, TASK_TYPE_ATTR
 
Fields inherited from interface util.SettingsConstants
ALTERNATIVE_BACKGROUND_COLOR, ALTERNATIVE_BACKGROUND_COLOR_ALIAS, ALTERNATIVE_FONT_ATTRIBUTES, ALTERNATIVE_FONT_ATTRIBUTES_ALIAS, ALTERNATIVE_FONT_COLOR, ALTERNATIVE_FONT_COLOR_ALIAS, CARET_BLINK_RATE, CARET_COLOR, CARET_WIDTH, DECORATED, DEFAULT_UI_STATE_CLASS, FONT_FACE, FONT_FACE_ALIAS, FONT_SIZE, FONT_SIZE_ALIAS, INNER_BACKGROUND_COLOR, INSTRUCTION_BACKGROUND_COLOR, INSTRUCTION_BACKGROUND_COLOR_ALIAS, INSTRUCTION_FONT_ATTRIBUTES, INSTRUCTION_FONT_ATTRIBUTES_ALIAS, INSTRUCTION_FONT_COLOR, INSTRUCTION_FONT_COLOR_ALIAS, LARGE_FONT_SIZE, LARGE_FONT_SIZE_ALIAS, LESSON_UI_STATE_CLASS, LOGGER_CLASS, LOGGER_DIRECTORY, LOGGER_PARAMS, SAVE_FILENAME, SCREEN_PERCENT, SKILL_LATTICE_FILENAME, SMALL_FONT_SIZE, SMALL_FONT_SIZE_ALIAS, STATS_FILENAME, TAL_SETTINGS_FILENAME, TITLE, TITLE_ALIAS, TITLE_ICON, TITLE_ICON_ALIAS, TRAINER_UI_STATE_CLASS, USER_ID
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TOCTreePanel(TrainingDesktop dt)
           
 
Method Summary
protected  TrainingPanel.KeyValue[] getMonitoredKeys()
          Returns the array of monitored keys.
protected  java.lang.String[] getQueryKeys()
          This method is not used.
protected  java.lang.String query(java.lang.String key)
          This method is not used.
protected  void TaskPropertyChanged(java.lang.String key, java.lang.String value)
          This method is called to indicate that a monitored value has changed.
 
Methods inherited from class desktop.TrainingPanel
addActionListener, getDesktop, getResetProperties, getSettings, getTaskProperties, parseCoords, removeActionListener, reset
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SKILL_DESCRIPTION

public static final java.lang.String SKILL_DESCRIPTION
Task Properties key for the selected skill description.

See Also:
Constant Field Values

SKILL_STATUS

public static final java.lang.String SKILL_STATUS
Task Properties key for the selected skill status text.

See Also:
Constant Field Values

SKILL_CONTROLS

public static final java.lang.String SKILL_CONTROLS
Task Properties key to indicate which selected skill buttons should be showing. The value is some space delimited list of skill control tokens. If SKILL_CONTROL_PANEL_TOKEN does not appear in the list, then no controls are showing.

See Also:
Constant Field Values

SKILL_CONTROL_PANEL_TOKEN

public static final java.lang.String SKILL_CONTROL_PANEL_TOKEN
Skill control token representing the entire control panel. Without this token, the entire panel is invisible so none of the buttons show.

See Also:
Constant Field Values

SKILL_REVIEW_CONTROL_TOKEN

public static final java.lang.String SKILL_REVIEW_CONTROL_TOKEN
Skill control token representing the review skill button.

See Also:
Constant Field Values

SKILL_TRAIN_CONTROL_TOKEN

public static final java.lang.String SKILL_TRAIN_CONTROL_TOKEN
Skill control token representing the start lesson button.

See Also:
Constant Field Values

SKILL_CONTINUE_CONTROL_TOKEN

public static final java.lang.String SKILL_CONTINUE_CONTROL_TOKEN
Skill control token representing the continue lesson button.

See Also:
Constant Field Values

SKILL_TREE

public static final java.lang.String SKILL_TREE
Task Properties key for the skill tree to display.

See Also:
Constant Field Values

SKILL_TREE_SELECTION

public static final java.lang.String SKILL_TREE_SELECTION
Task Properties key for the skill to display as selected in the tree. This should be a dot delimited list of path tokens.

See Also:
Constant Field Values

SKILL_SCHEDULING

public static final java.lang.String SKILL_SCHEDULING
Task Properties key to indicate if the skill will be taught or not. The value should be either YES_TOKEN or NO_TOKEN.

See Also:
Constant Field Values

ON_ICON

public static final java.lang.String ON_ICON
The icon to display to when the skill is turned on.

See Also:
Constant Field Values

OFF_ICON

public static final java.lang.String OFF_ICON
The icon to display to when the skill is turned off.

See Also:
Constant Field Values

ON_TEXT

public static final java.lang.String ON_TEXT
The text to display to when the skill is turned on.

See Also:
Constant Field Values

OFF_TEXT

public static final java.lang.String OFF_TEXT
The text to display to when the skill is turned off.

See Also:
Constant Field Values

KEY_ICON_TOKEN

public static final java.lang.String KEY_ICON_TOKEN
TOCTree icon token representing the key icon.

See Also:
Constant Field Values

MOUSE_ICON_TOKEN

public static final java.lang.String MOUSE_ICON_TOKEN
TOCTree icon token representing the mouse icon.

See Also:
Constant Field Values

EMAIL_ICON_TOKEN

public static final java.lang.String EMAIL_ICON_TOKEN
TOCTree icon token representing the email icon.

See Also:
Constant Field Values

MISC_ICON_TOKEN

public static final java.lang.String MISC_ICON_TOKEN
TOCTree icon token representing the miscellaneous (unknown) icon.

See Also:
Constant Field Values

HIGHLIGHT_COLOR

public static final java.lang.String HIGHLIGHT_COLOR
A 24-bit RGB value for color.

See Also:
Constant Field Values

HEADING_NAME

public static final java.lang.String HEADING_NAME
Name of the heading label components.

See Also:
Constant Field Values

TITLE_NAME

public static final java.lang.String TITLE_NAME
Name of the tree title label component.

See Also:
Constant Field Values

SKILL_LABEL_NAME

public static final java.lang.String SKILL_LABEL_NAME
Name of the selected skill label components.

See Also:
Constant Field Values

SKILL_TREE_NAME

public static final java.lang.String SKILL_TREE_NAME
Name of the skill tree component.

See Also:
Constant Field Values

ACTION_TYPE_GOTO_DOMAINS

public static final java.lang.String ACTION_TYPE_GOTO_DOMAINS
Name of the goto domains button component.

See Also:
Constant Field Values

TREE_SELECT_ACTION

public static final java.lang.String TREE_SELECT_ACTION
Prefix of action command generated when the skills tree is clicked. The command will begin with this prefix and then list the path to the item that was clicked.

See Also:
Constant Field Values
Constructor Detail

TOCTreePanel

public TOCTreePanel(TrainingDesktop dt)
Method Detail

TaskPropertyChanged

protected void TaskPropertyChanged(java.lang.String key,
                                   java.lang.String value)
Description copied from class: TrainingPanel
This method is called to indicate that a monitored value has changed. Presumeably, the value is being monitored so that this TrainingPanel can make some visual change. Implementors must be sure that such changes are done in a thread-safe manner, using the AWT Event Queue.

Specified by:
TaskPropertyChanged in class TrainingPanel

getMonitoredKeys

protected TrainingPanel.KeyValue[] getMonitoredKeys()
Description copied from class: TrainingPanel
Returns the array of monitored keys. Whenever the TaskPropertyMap detects changes to these keys, it will call the TaskPropertyChanged method with the key and the new value. The TaskProperties object returned from reset() contains these keys and values. The values returned can be based on the settings from getSettings(), or some predetermined defaults; however, this method will be called in this class's constructor before the subclass has been constructed. Therefore, any subclass instance variables will not be available.

Specified by:
getMonitoredKeys in class TrainingPanel
Returns:
HIGHLIGHT_COLOR, SKILL_CONTROLS, SKILL_DESCRIPTION, SKILL_STATUS, SKILL_SCHEDULING, SKILL_TREE and SKILL_TREE_SELECTION.

getQueryKeys

protected java.lang.String[] getQueryKeys()
This method is not used.

Specified by:
getQueryKeys in class TrainingPanel

query

protected java.lang.String query(java.lang.String key)
This method is not used.

Specified by:
query in class TrainingPanel

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.