jcontrol.ui.wombat.event
Interface KeyListener

All Superinterfaces:
EventListener
All Known Subinterfaces:
IFocusable
All Known Implementing Classes:
AbstractFocusComponent, AbstractScrolledComponent, Button, CheckBox, ComboBox, Frame, KeyPad, ListBox, Menu, MultiImageMenu, NumberChooser, RadioButton, RockerSwitch, Slider, TextInputField, TextViewer, ToggleSwitch, TypeWriter

public interface KeyListener
extends EventListener

The interface KeyListener must be implemented by components that want to receive key events when a key was pressed.

(C) DOMOLOGIC Home Automation GmbH 2005 - 2007

See Also:
KeyEvent

Method Summary
 KeyEvent onKeyEvent(KeyEvent e)
          Every time a key event is fired, this method will be called.
 

Method Detail

onKeyEvent

KeyEvent onKeyEvent(KeyEvent e)
Every time a key event is fired, this method will be called.

Parameters:
e - The key event.
Returns:
null if the KeyEvent has been consumed by the KeyListener,
or the the specified KeyEvent if it should be passed on to the next KeyListener.