JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class KeyInputHandler

java.lang.Object
  |
  +--com.klg.jclass.table.InputHandler
        |
        +--com.klg.jclass.table.KeyInputHandler
All Implemented Interfaces:
EventListener, KeyListener, Serializable

public class KeyInputHandler
extends InputHandler
implements KeyListener, Serializable

KeyInputHandler processes all key events for table during key press. It handles traversal, selection, and editor start and stop.

See Also:
Serialized Form

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

KeyInputHandler

public KeyInputHandler(com.klg.jclass.table.JCTable table)
Method Detail

keyPressed

public void keyPressed(KeyEvent e)
Processes key pressed events for table.

Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

traverse

protected boolean traverse(int direction)
Traverses from the current cell in the given direction.


findTraversableCell

protected com.klg.jclass.table.JCCellPosition findTraversableCell(int direction,
                                                                  int row,
                                                                  int column)
Finds the next traversable cell given a direction and current position. Directions include:

Null is returned if no traversable cell is found.


isModifierKey

public boolean isModifierKey(int key)
Returns true if the key is a modifier.


Copyright © 2004 Quest Software Inc..
All rights reserved.