|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.WEvent org.westofj.wui.WActionEvent
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.
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 |
public static final int BUTTON_PRESSED
Constructor Detail |
public WActionEvent(WAbstractButton source, int event, String actionCommand)
source
- the source widget that created the event instance.event
- the type of event.actionCommand
- the action command of the source widget.Method Detail |
public WAbstractButton getAbstractButton()
WAbstractButton
associated with the event.
WAbstractButton
associated with the event.public String getActionCommand()
public int getEvent()
protected void fire()
WEvent
fire
in class WEvent
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |