buoy.event

Class WidgetKeyEvent

Implemented Interfaces:
WidgetEvent
Known Direct Subclasses:
KeyPressedEvent, KeyReleasedEvent, KeyTypedEvent

public abstract class WidgetKeyEvent
extends KeyEvent
implements WidgetEvent

This class defines an event caused by a keyboard action. It is sent to the Widget that has keyboard focus. This is an abstract class, with subclasses for particular types of events.
Author:
Peter Eastman

Method Summary

Object
getSource()
Get the object which generated this event.
Widget
getWidget()
Get the Widget which generated this event.

Method Details

getSource

public Object getSource()
Get the object which generated this event.

getWidget

public Widget getWidget()
Get the Widget which generated this event.
Specified by:
getWidget in interface WidgetEvent

Written by Peter Eastman.