WUI : API


org.westofj.wui
Class WActionEvent

java.lang.Object
  extended byorg.westofj.wui.WEvent
      extended byorg.westofj.wui.WActionEvent

public class WActionEvent
extends WEvent

An object capturing that a widget 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.3 $, $Date: 2004/03/08 01:57:36 $
Author:
bill

Field Summary
static int BUTTON_PRESSED
           
 
Constructor Summary
WActionEvent(WAbstractButton source, int event, String actionCommand)
          Constructs an event instance.
 
Method Summary
protected  void fire()
          Fires the event.
 WAbstractButton getAbstractButton()
          Returns the WAbstractButton associated with the event.
 String getActionCommand()
          Returns the action command of the source widget.
 int getEvent()
          Returns the type of event.
 
Methods inherited from class org.westofj.wui.WEvent
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON_PRESSED

public static final int BUTTON_PRESSED
See Also:
Constant Field Values
Constructor Detail

WActionEvent

public WActionEvent(WAbstractButton source,
                    int event,
                    String actionCommand)
Constructs an event instance.

Parameters:
source - the source widget that created the event instance.
event - the type of event.
actionCommand - the action command of the source widget.
Method Detail

getAbstractButton

public WAbstractButton getAbstractButton()
Returns the WAbstractButton associated with the event.

Returns:
the WAbstractButton associated with the event.

getActionCommand

public String getActionCommand()
Returns the action command of the source widget.

Returns:
String the action command of the source widget.

getEvent

public int getEvent()
Returns the type of event.

Returns:
int the type of event.

fire

protected void fire()
Description copied from class: WEvent
Fires the event. This method should not be called by the user, but rather by the framework.

Specified by:
fire in class WEvent

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