public class WindowEvent extends Event
Modifier and Type | Field and Description |
---|---|
private int |
action
The 4GL action associated with this event.
|
private WindowEvent |
nextEvent
The next event to be raised, if the trigger does not consume this one.
|
private int |
origin
The id of the source window which was the root cause of this event.
|
Constructor and Description |
---|
WindowEvent(Widget<?> widget,
int id)
Create a new event for the specified widget, with the specified ID.
|
WindowEvent(Widget<?> widget,
int id,
int action)
Create a new event for the specified widget, with the specified ID.
|
Modifier and Type | Method and Description |
---|---|
int |
getAction()
Get the
action . |
WindowEvent |
getNextEvent()
Get the next event to be raised, if the trigger does not consume this one.
|
int |
getOrigin()
Get the origin of this event (the id of the source window which was the root cause of this
event).
|
void |
setNextEvent(WindowEvent next)
Set the next event to be raised, if the trigger does not consume this one.
|
void |
setOrigin(int windowId)
Set the origin of this event (the id of the source window which was the root cause of this
event).
|
java.lang.String |
toString()
Returns a string representation of the object.
|
private int action
private int origin
Event.source()
, which represents the window on which the event is applied.private WindowEvent nextEvent
public WindowEvent(Widget<?> widget, int id)
widget
- The source widget.id
- The event ID.public WindowEvent(Widget<?> widget, int id, int action)
widget
- The source widget.id
- The event ID.action
- The associated action.public int getAction()
action
.public int getOrigin()
origin
.public void setOrigin(int windowId)
windowId
- The window ID.public void setNextEvent(WindowEvent next)
next
- The next window event to be raised.public WindowEvent getNextEvent()
nextEvent
.public java.lang.String toString()
toString
in class java.lang.Object