javax.swing.plaf.basic
Class BasicTableUI.KeyHandler

java.lang.Object
  extended by javax.swing.plaf.basic.BasicTableUI.KeyHandler
All Implemented Interfaces:
KeyListener, EventListener
Enclosing class:
BasicTableUI

public class BasicTableUI.KeyHandler
extends Object
implements KeyListener

Handles key events for the JTable. Key events should be handled through the InputMap/ActionMap mechanism since JDK1.3. This class is only there for backwards compatibility.


Constructor Summary
BasicTableUI.KeyHandler()
           
 
Method Summary
 void keyPressed(KeyEvent event)
          Receives notification that a key has been pressed.
 void keyReleased(KeyEvent event)
          Receives notification that a key has been released.
 void keyTyped(KeyEvent event)
          Receives notification that a key has been pressed and released.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTableUI.KeyHandler

public BasicTableUI.KeyHandler()
Method Detail

keyTyped

public void keyTyped(KeyEvent event)
Receives notification that a key has been pressed and released. Activates the editing session for the focused cell by pressing the character keys.

Specified by:
keyTyped in interface KeyListener
Parameters:
event - the key event

keyPressed

public void keyPressed(KeyEvent event)
Receives notification that a key has been pressed.

Specified by:
keyPressed in interface KeyListener
Parameters:
event - the key event

keyReleased

public void keyReleased(KeyEvent event)
Receives notification that a key has been released.

Specified by:
keyReleased in interface KeyListener
Parameters:
event - the key event