|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.table.InputHandler | +--com.klg.jclass.table.KeyInputHandler
KeyInputHandler
processes all key events for
table during key press. It handles traversal, selection, and
editor start and stop.
Field Summary |
Fields inherited from class com.klg.jclass.table.InputHandler |
SELECTING, table |
Constructor Summary | |
KeyInputHandler(com.klg.jclass.table.JCTable table)
|
Method Summary | |
protected com.klg.jclass.table.JCCellPosition |
findTraversableCell(int direction,
int row,
int column)
Finds the next traversable cell given a direction and current position. |
boolean |
isModifierKey(int key)
Returns true if the key is a modifier. |
void |
keyPressed(KeyEvent e)
Processes key pressed events for table. |
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
protected boolean |
traverse(int direction)
Traverses from the current cell in the given direction. |
Methods inherited from class com.klg.jclass.table.InputHandler |
getCellPosition, isAlt, isCell, isControl, isCopyAction, isLabel, isMeta, isPasteAction, isShift, loadPasteData, performCopyAction, performPasteAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KeyInputHandler(com.klg.jclass.table.JCTable table)
Method Detail |
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
protected boolean traverse(int direction)
protected com.klg.jclass.table.JCCellPosition findTraversableCell(int direction, int row, int column)
JCTableEnum.TRAVERSE_LEFT
JCTableEnum.TRAVERSE_RIGHT
JCTableEnum.TRAVERSE_UP
JCTableEnum.TRAVERSE_DOWN
JCTableEnum.TRAVERSE_PAGEUP
JCTableEnum.TRAVERSE_PAGEDOWN
JCTableEnum.TRAVERSE_TOP
JCTableEnum.TRAVERSE_BOTTOM
JCTableEnum.TRAVERSE_HOME
JCTableEnum.TRAVERSE_END
Null is returned if no traversable cell is found.
public boolean isModifierKey(int key)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |