final class EventSender
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
ALT |
private static int |
CTRL |
private boolean |
dragMode
The current state of the drag mode.
|
private static java.util.Map<java.lang.Object,KeyCode> |
MAP |
private static int |
META |
private int |
modifiers
The current modifiers for touch events.
|
private int |
mouseButton
The type of mouse button.
|
private int |
mousePositionX
The current X position of the mouse.
|
private int |
mousePositionY
The current Y position of the mouse.
|
private boolean |
mousePressed
The current state of mouse buttons.
|
private static int |
PRESSED |
private static float |
SCROLL |
private static int |
SHIFT |
private long |
timeOffset
The time offset for events.
|
private WebPage |
webPage
The web page to send events to.
|
private static float |
ZOOM |
Constructor and Description |
---|
EventSender(WebPage webPage)
Creates a new
EventSender . |
Modifier and Type | Method and Description |
---|---|
private void |
addTouchPoint(int x,
int y)
Implements the
addTouchPoint
method of the DRT event sender object. |
private void |
beginDragWithFiles(java.lang.String[] names)
Implements the
beginDragWithFiles
method of the DRT event sender object. |
private void |
cancelTouchPoint(int i)
Implements the
cancelTouchPoint
method of the DRT event sender object. |
private void |
clearTouchPoints()
Implements the
clearTouchPoints
method of the DRT event sender object. |
private void |
contextClick()
Implements the
contextClick
method of the DRT event sender object. |
private void |
dispatchKeyEvent(int type,
java.lang.String text,
java.lang.String keyIdentifier,
int windowsVirtualKeyCode,
int modifiers) |
private void |
dispatchMouseEvent(int type,
int button,
int clicks,
int modifiers) |
private boolean |
getDragMode()
Returns the
dragMode
variable of the DRT event sender object. |
private long |
getEventTime() |
private static boolean |
isSet(int modifiers,
int modifier) |
private void |
keyDown(java.lang.String key,
int modifiers)
Implements the
keyDown
method of the DRT event sender object. |
private void |
leapForward(int timeOffset)
Implements the
leapForward
method of the DRT event sender object. |
private void |
mouseMoveTo(int x,
int y)
Implements the
mouseMoveTo
method of the DRT event sender object. |
private void |
mouseScroll(float x,
float y,
boolean continuous)
Implements the
mouseScrollBy and continuousMouseScrollBy
methods of the DRT event sender object. |
private void |
mouseUpDown(int button,
int modifiers)
Implements the
mouseUp and mouseDown
methods of the DRT event sender object. |
private void |
releaseTouchPoint(int i)
Implements the
releaseTouchPoint
method of the DRT event sender object. |
private void |
scalePageBy(float scale,
int x,
int y)
Implements the
scalePageBy
method of the DRT event sender object. |
private void |
scheduleAsynchronousClick()
Implements the
scheduleAsynchronousClick
method of the DRT event sender object. |
private void |
setDragMode(boolean mode)
Sets the
dragMode
variable of the DRT event sender object. |
private void |
setTouchModifier(int modifier,
boolean set)
Implements the
setTouchModifier
method of the DRT event sender object. |
private void |
touchCancel()
Implements the
touchCancel
method of the DRT event sender object. |
private void |
touchEnd()
Implements the
touchEnd
method of the DRT event sender object. |
private void |
touchMove()
Implements the
touchMove
method of the DRT event sender object. |
private void |
touchStart()
Implements the
touchStart
method of the DRT event sender object. |
private void |
updateTouchPoint(int i,
int x,
int y)
Implements the
updateTouchPoint
method of the DRT event sender object. |
private void |
zoom(boolean in,
boolean textOnly)
Implements the
textZoomIn , textZoomOut
zoomPageInt , and zoomPageOut
methods of the DRT event sender object. |
private static final int ALT
private static final int CTRL
private static final int META
private static final int SHIFT
private static final int PRESSED
private static final float ZOOM
private static final float SCROLL
private static final java.util.Map<java.lang.Object,KeyCode> MAP
private final WebPage webPage
private boolean dragMode
private int mousePositionX
private int mousePositionY
private boolean mousePressed
private int mouseButton
private long timeOffset
private int modifiers
EventSender(WebPage webPage)
EventSender
.private void keyDown(java.lang.String key, int modifiers)
keyDown
method of the DRT event sender object.private void mouseUpDown(int button, int modifiers)
mouseUp
and mouseDown
methods of the DRT event sender object.private void mouseMoveTo(int x, int y)
mouseMoveTo
method of the DRT event sender object.private void mouseScroll(float x, float y, boolean continuous)
mouseScrollBy
and continuousMouseScrollBy
methods of the DRT event sender object.private void leapForward(int timeOffset)
leapForward
method of the DRT event sender object.private void contextClick()
contextClick
method of the DRT event sender object.private void scheduleAsynchronousClick()
scheduleAsynchronousClick
method of the DRT event sender object.private void touchStart()
touchStart
method of the DRT event sender object.private void touchCancel()
touchCancel
method of the DRT event sender object.private void touchMove()
touchMove
method of the DRT event sender object.private void touchEnd()
touchEnd
method of the DRT event sender object.private void addTouchPoint(int x, int y)
addTouchPoint
method of the DRT event sender object.private void updateTouchPoint(int i, int x, int y)
updateTouchPoint
method of the DRT event sender object.private void cancelTouchPoint(int i)
cancelTouchPoint
method of the DRT event sender object.private void releaseTouchPoint(int i)
releaseTouchPoint
method of the DRT event sender object.private void clearTouchPoints()
clearTouchPoints
method of the DRT event sender object.private void setTouchModifier(int modifier, boolean set)
setTouchModifier
method of the DRT event sender object.private void scalePageBy(float scale, int x, int y)
scalePageBy
method of the DRT event sender object.private void zoom(boolean in, boolean textOnly)
textZoomIn
, textZoomOut
zoomPageInt
, and zoomPageOut
methods of the DRT event sender object.private void beginDragWithFiles(java.lang.String[] names)
beginDragWithFiles
method of the DRT event sender object.private boolean getDragMode()
dragMode
variable of the DRT event sender object.private void setDragMode(boolean mode)
dragMode
variable of the DRT event sender object.private long getEventTime()
private void dispatchKeyEvent(int type, java.lang.String text, java.lang.String keyIdentifier, int windowsVirtualKeyCode, int modifiers)
private void dispatchMouseEvent(int type, int button, int clicks, int modifiers)
private static boolean isSet(int modifiers, int modifier)