buoy.event

Class KeyPressedEvent

Implemented Interfaces:
WidgetEvent

public class KeyPressedEvent
extends WidgetKeyEvent

This is an event corresponding to a key on the keyboard being pressed.
Author:
Peter Eastman

Constructor Summary

KeyPressedEvent(Widget source, long when, int modifiers, int keyCode)
Create a KeyPressedEvent.

Method Summary

Methods inherited from class buoy.event.WidgetKeyEvent

getSource, getWidget

Constructor Details

KeyPressedEvent

public KeyPressedEvent(Widget source,
                       long when,
                       int modifiers,
                       int keyCode)
Create a KeyPressedEvent.
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)
keyCode - specifies which key on the keyboard generated the event. This should be one of the VK_ constants.

Written by Peter Eastman.