public class PortableMouseEvent extends Event
Modifier and Type | Field and Description |
---|---|
private int |
action
The 4GL action associated with this event.
|
private int |
x
The value of the LAST-EVENT:X attribute.
|
private int |
y
The value of the LAST-EVENT:Y attribute.
|
Constructor and Description |
---|
PortableMouseEvent(Widget<?> widget,
int id,
int x,
int y)
Create a new event for the specified widget, with the specified ID.
|
PortableMouseEvent(Widget<?> widget,
int id,
int action,
int x,
int y)
Create a new event for the specified widget, with the specified ID.
|
PortableMouseEvent(Widget<?> widget,
java.lang.String label,
int x,
int y)
Create a new event for the specified widget, with the specified event label.
|
PortableMouseEvent(Widget<?> widget,
java.lang.String label,
int action,
int x,
int y)
Create a new event for the specified widget, with the specified ID.
|
PortableMouseEvent(Widget<?> widget,
java.lang.String label,
java.lang.String action,
int x,
int y)
Create a new event for the specified widget, with the specified ID.
|
Modifier and Type | Method and Description |
---|---|
int |
getAction()
Get the
action . |
int |
getX()
Get the
x coordinate for this portable mouse event. |
int |
getY()
Get the
y coordinate for this portable mouse event. |
private final int action
private final int x
private final int y
public PortableMouseEvent(Widget<?> widget, java.lang.String label, int x, int y)
widget
- The source widget.label
- The event label.x
- The value of LAST-EVENT:X attribute.y
- The value of LAST-EVENT:Y attribute.public PortableMouseEvent(Widget<?> widget, int id, int x, int y)
widget
- The source widget.id
- The event ID.x
- The value of LAST-EVENT:X attribute.y
- The value of LAST-EVENT:Y attribute.public PortableMouseEvent(Widget<?> widget, java.lang.String label, int action, int x, int y)
widget
- The source widget.label
- The event's label.action
- The associated action.x
- The value of LAST-EVENT:X attribute.y
- The value of LAST-EVENT:Y attribute.public PortableMouseEvent(Widget<?> widget, java.lang.String label, java.lang.String action, int x, int y)
widget
- The source widget.label
- The event's label.action
- The associated action.x
- The value of LAST-EVENT:X attribute.y
- The value of LAST-EVENT:Y attribute.public PortableMouseEvent(Widget<?> widget, int id, int action, int x, int y)
widget
- The source widget.id
- The event ID.action
- The associated action.x
- The value of LAST-EVENT:X attribute.y
- The value of LAST-EVENT:Y attribute.