public abstract class MouseWidgetAction
extends java.awt.event.MouseAdapter
| Modifier and Type | Field and Description |
|---|---|
private int |
eventId
The
MouseEvt event ID for this high-level action. |
protected GuiDriver |
gd
The active GUI driver.
|
protected org.roaringbitmap.RoaringBitmap |
mouseActions
The low-level mouse actions on which this instance can operate.
|
protected Widget<?> |
widget
The widget associated with this action.
|
| Constructor and Description |
|---|
MouseWidgetAction(int wid,
int eventId)
Create a new mouse action, for the specified widget.
|
MouseWidgetAction(int wid,
int[] mouseActions,
int eventId)
Create a new mouse action, for the specified widget.
|
MouseWidgetAction(Widget<?> widget,
int[] mouseActions,
int eventId)
Create a new mouse action, for the specified widget.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEventId()
Get the
event ID for this high-level action. |
boolean |
hasEvent(java.awt.event.MouseEvent e)
Determine if this complex action requires to process the given mouse event.
|
protected final Widget<?> widget
protected final GuiDriver gd
protected org.roaringbitmap.RoaringBitmap mouseActions
private final int eventId
MouseEvt event ID for this high-level action.public MouseWidgetAction(int wid,
int eventId)
wid - The widget ID.eventId - The event ID.public MouseWidgetAction(int wid,
int[] mouseActions,
int eventId)
wid - The widget ID.mouseActions - The low-level mouse events on which this instance operates. May be
null if it can act on any mouse event.eventId - The event ID.public MouseWidgetAction(Widget<?> widget, int[] mouseActions, int eventId)
widget - The widget.mouseActions - The low-level mouse events on which this instance operates. May be
null if it can act on any mouse event.eventId - The event ID.public int getEventId()
event ID for this high-level action.public boolean hasEvent(java.awt.event.MouseEvent e)
e - The mouse event.mouseActions.