buoy.event

Class WidgetWindowEvent

Implemented Interfaces:
WidgetEvent
Known Direct Subclasses:
WindowActivatedEvent, WindowClosingEvent, WindowDeactivatedEvent, WindowDeiconifiedEvent, WindowIconifiedEvent, WindowResizedEvent

public abstract class WidgetWindowEvent
extends WindowEvent
implements WidgetEvent

This class defines an event caused by the user interacting with a window. It is an abstract class, with subclasses for specific types of events.
Author:
Peter Eastman

Constructor Summary

WidgetWindowEvent(WindowWidget source, int id)
Create a WidgetWindowEvent.

Method Summary

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

Constructor Details

WidgetWindowEvent

public WidgetWindowEvent(WindowWidget source,
                         int id)
Create a WidgetWindowEvent.
Parameters:
source - the window to which this event occurred
id - the event ID

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.