DESY ACOP Beans Home

com.cosylab.gui.components
Class NumberField.NumberKeyAdapter

java.lang.Object
  extended by java.awt.event.KeyAdapter
      extended by com.cosylab.gui.components.NumberField.NumberKeyAdapter
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener
Enclosing class:
NumberField

protected class NumberField.NumberKeyAdapter
extends java.awt.event.KeyAdapter

An implementation of KeyAdapter responsible for losing focus when the ESC key is pressed.

Version:
$id$
Author:
Jernej Kamenik

Constructor Summary
protected NumberField.NumberKeyAdapter()
           
 
Method Summary
 void keyPressed(java.awt.event.KeyEvent e)
          Makes the Numberfield lose focus when the ESC key is pressed.
 
Methods inherited from class java.awt.event.KeyAdapter
keyReleased, keyTyped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberField.NumberKeyAdapter

protected NumberField.NumberKeyAdapter()
Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Makes the Numberfield lose focus when the ESC key is pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class java.awt.event.KeyAdapter
Parameters:
e - KeyEvent
See Also:
KeyListener.keyPressed(KeyEvent)


Copyright © 2010. All Rights Reserved.