WUI : API


org.westofj.wui
Class WEvent

java.lang.Object
  extended byorg.westofj.wui.WEvent
Direct Known Subclasses:
WActionEvent, WChangeEvent, WTableSelectionEvent

public abstract class WEvent
extends Object

An object capturing that an event has occurred. Events are generated by widgets to describe an interaction event. The widget then invokes its listeners, passing the event instance to the appropriate method.

Version:
$Revision: 1.2 $
Author:
bill

Constructor Summary
WEvent(Widget source)
          Constructs a change event.
 
Method Summary
protected abstract  void fire()
          Fires the event.
 Widget getSource()
          Returns the source of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WEvent

public WEvent(Widget source)
Constructs a change event.

Parameters:
source - the source of the event, typically a Widget.
Method Detail

getSource

public final Widget getSource()
Returns the source of the event.

Returns:
Widget the source of the event.

fire

protected abstract void fire()
Fires the event. This method should not be called by the user, but rather by the framework.


Copyright (c) 2003 West of J - All rights reserved.