buoy.event

Class KeyTypedEvent

Implemented Interfaces:
WidgetEvent

public class KeyTypedEvent
extends WidgetKeyEvent

This is an event corresponding to a Unicode character being generated by the user interacting with the keyboard. The exact relationship between the keyboard interaction and the resulting KeyTypedEvents may be complex. Several different key presses may contribute to a single KeyTypedEvent (such as holding down the Shift key while typing a letter), or a single key press may generate multiple KeyTypedEvents (such as holding down a key to activate autorepeat).
Author:
Peter Eastman

Constructor Summary

KeyTypedEvent(Widget source, long when, int modifiers, char keyChar)
Create a KeyTypedEvent.

Method Summary

Methods inherited from class buoy.event.WidgetKeyEvent

getSource, getWidget

Constructor Details

KeyTypedEvent

public KeyTypedEvent(Widget source,
                     long when,
                     int modifiers,
                     char keyChar)
Create a KeyTypedEvent.
Parameters:
source - the Widget which generated this event
when - the time at which the event occurred
modifiers - describes the state of various keys and buttons at the time when the event occurred (a sum of the constants defined by InputEvent)
keyChar - the Unicode character generated by this event

Written by Peter Eastman.