|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectconstraint.ConstraintAdapter
keyboard.constraint.ShowAllMovement
Moves the cursor using the cursor control keys. This constraint works with the keyboard trainin panel. The value for this constraint can contain the following tokens:
| Field Summary | |
static java.lang.String |
BAD_MOVEMENT_ERROR
|
static java.lang.String |
NO_SHIFT
Token used in constraint values. |
| Constructor Summary | |
ShowAllMovement()
|
|
| Method Summary | |
static int[] |
moveDown(TaskProperties tp,
int[] caret,
boolean select)
Returns the mark and dot value to place the caret on the following line. |
static int[] |
moveEnd(TaskProperties tp,
int[] caret,
boolean select)
Moves the caret to the lastcharacter in the current line. |
static int[] |
moveHome(TaskProperties tp,
int[] caret,
boolean select)
Moves the caret to the first character in the current line. |
static int[] |
moveLeft(TaskProperties tp,
int[] caret,
boolean select,
boolean wrap)
Returns the mark and dot value to place the caret on the previous character. |
static int[] |
moveRight(TaskProperties tp,
int[] caret,
boolean select,
boolean wrap)
Returns the mark and dot value to place the caret on the next character. |
static int[] |
moveUp(TaskProperties tp,
int[] caret,
boolean select)
Returns the mark and dot value to place the caret on the previous line. |
void |
processKeyEvent(java.awt.event.KeyEvent ev,
TaskProperties tp)
Moves the cursor in response to cursor control keys. |
| Methods inherited from class constraint.ConstraintAdapter |
fireAutoAction, getIntValue, getType, getValue, process, processActionEvent, processInit, processMouseEvent, setValue, splitPairs, startAutoAction, stopAutoAction, stringToRGB, toString, valueContains |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String NO_SHIFT
public static final java.lang.String BAD_MOVEMENT_ERROR
| Constructor Detail |
public ShowAllMovement()
| Method Detail |
public static int[] moveUp(TaskProperties tp,
int[] caret,
boolean select)
throws javax.swing.text.BadLocationException
tp - the task properties of the keyboard training panel.select - if true, the return value will contain a selection
from the current mark to the new cursor position. If false, the
method returns with mark = dot.
throws - BadLocationException if the cursor cannot move up.
javax.swing.text.BadLocationException
public static int[] moveDown(TaskProperties tp,
int[] caret,
boolean select)
throws javax.swing.text.BadLocationException
tp - the task properties of the keyboard training panel.select - if true, the return value will contain a selection
from the current mark to the new cursor position. If false, the
method returns with mark = dot.
throws - BadLocationException if the cursor cannot move down.
javax.swing.text.BadLocationException
public static int[] moveLeft(TaskProperties tp,
int[] caret,
boolean select,
boolean wrap)
throws javax.swing.text.BadLocationException
tp - the task properties of the keyboard training panel.select - if true, the return value will contain a selection
from the current mark to the new cursor position.wrap - if true and the cursor is at the beginning of a line,
the return value will be the end of the previous line. If false, the
method returns with mark = dot.
throws - BadLocationException if the cursor cannot move left.
javax.swing.text.BadLocationException
public static int[] moveRight(TaskProperties tp,
int[] caret,
boolean select,
boolean wrap)
throws javax.swing.text.BadLocationException
tp - the task properties of the keyboard training panel.select - if true, the return value will contain a selection
from the current mark to the new cursor position.wrap - if true and the cursor is at the beginning of a line,
the return value will be the end of the previous line. If false, the
method returns with mark = dot.
throws - BadLocationException if the cursor cannot move right.
javax.swing.text.BadLocationException
public static int[] moveHome(TaskProperties tp,
int[] caret,
boolean select)
public static int[] moveEnd(TaskProperties tp,
int[] caret,
boolean select)
public void processKeyEvent(java.awt.event.KeyEvent ev,
TaskProperties tp)
processKeyEvent in class ConstraintAdapter
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.