Top Description Fields Constructors Methods
com.sun.javafx.webkit.drt

pack-priv final Class EventSender

extends Object
Class Inheritance
Imports
com.sun.webkit.WebPage, com.sun.javafx.webkit.KeyCodeMap, com.sun.webkit.event.WCKeyEvent, .WCMouseEvent, .WCMouseWheelEvent, java.util.HashMap, .Map, javafx.scene.input.KeyCode

Event sender for DRT tests.

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private int
private static final int
private boolean
dragMode

The current state of the drag mode.

private long
lastClickTime

Following states are used to send double click

private int
private int
private static final Map<Object, KeyCode>
private static final int
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 final int
private static final float
private static final int
private long
timeOffset

The time offset for events.

private final WebPage
webPage

The web page to send events to.

private static final float

Constructor Summary

AccessConstructor and Description
pack-priv
EventSender(WebPage webPage)

Creates a new EventSender.

Method Summary

Modifier and TypeMethod and Description
private void
addTouchPoint(int x, int y)

Implements the addTouchPoint method of the DRT event sender object.

private void
beginDragWithFiles(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, String text, 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
private static boolean
isSet(int modifiers, int modifier)

private void
keyDown(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
updateClickCountForButton(int buttonNumber)

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ALTback to summary
private static final int ALT
CAPS_LOCKback to summary
private static final int CAPS_LOCK
clickCountback to summary
private int clickCount
CTRLback to summary
private static final int CTRL
dragModeback to summary
private boolean dragMode

The current state of the drag mode.

lastClickTimeback to summary
private long lastClickTime

Following states are used to send double click

lastMouseClickPositionXback to summary
private int lastMouseClickPositionX
lastMouseClickPositionYback to summary
private int lastMouseClickPositionY
MAPback to summary
private static final Map<Object, KeyCode> MAP
METAback to summary
private static final int META
modifiersback to summary
private int modifiers

The current modifiers for touch events.

mouseButtonback to summary
private int mouseButton

The type of mouse button.

mousePositionXback to summary
private int mousePositionX

The current X position of the mouse.

mousePositionYback to summary
private int mousePositionY

The current Y position of the mouse.

mousePressedback to summary
private boolean mousePressed

The current state of mouse buttons.

PRESSEDback to summary
private static final int PRESSED
SCROLLback to summary
private static final float SCROLL
SHIFTback to summary
private static final int SHIFT
timeOffsetback to summary
private long timeOffset

The time offset for events.

webPageback to summary
private final WebPage webPage

The web page to send events to.

ZOOMback to summary
private static final float ZOOM

Constructor Detail

EventSenderback to summary
pack-priv EventSender(WebPage webPage)

Creates a new EventSender.

Method Detail

addTouchPointback to summary
private void addTouchPoint(int x, int y)

Implements the addTouchPoint method of the DRT event sender object.

beginDragWithFilesback to summary
private void beginDragWithFiles(String[] names)

Implements the beginDragWithFiles method of the DRT event sender object.

cancelTouchPointback to summary
private void cancelTouchPoint(int i)

Implements the cancelTouchPoint method of the DRT event sender object.

clearTouchPointsback to summary
private void clearTouchPoints()

Implements the clearTouchPoints method of the DRT event sender object.

contextClickback to summary
private void contextClick()

Implements the contextClick method of the DRT event sender object.

dispatchKeyEventback to summary
private void dispatchKeyEvent(int type, String text, String keyIdentifier, int windowsVirtualKeyCode, int modifiers)
dispatchMouseEventback to summary
private void dispatchMouseEvent(int type, int button, int clicks, int modifiers)
getDragModeback to summary
private boolean getDragMode()

Returns the dragMode variable of the DRT event sender object.

getEventTimeback to summary
private long getEventTime()
isSetback to summary
private static boolean isSet(int modifiers, int modifier)
keyDownback to summary
private void keyDown(String key, int modifiers)

Implements the keyDown method of the DRT event sender object.

leapForwardback to summary
private void leapForward(int timeOffset)

Implements the leapForward method of the DRT event sender object.

mouseMoveToback to summary
private void mouseMoveTo(int x, int y)

Implements the mouseMoveTo method of the DRT event sender object.

mouseScrollback to summary
private void mouseScroll(float x, float y, boolean continuous)

Implements the mouseScrollBy and continuousMouseScrollBy methods of the DRT event sender object.

mouseUpDownback to summary
private void mouseUpDown(int button, int modifiers)

Implements the mouseUp and mouseDown methods of the DRT event sender object.

releaseTouchPointback to summary
private void releaseTouchPoint(int i)

Implements the releaseTouchPoint method of the DRT event sender object.

scalePageByback to summary
private void scalePageBy(float scale, int x, int y)

Implements the scalePageBy method of the DRT event sender object.

scheduleAsynchronousClickback to summary
private void scheduleAsynchronousClick()

Implements the scheduleAsynchronousClick method of the DRT event sender object.

setDragModeback to summary
private void setDragMode(boolean mode)

Sets the dragMode variable of the DRT event sender object.

setTouchModifierback to summary
private void setTouchModifier(int modifier, boolean set)

Implements the setTouchModifier method of the DRT event sender object.

touchCancelback to summary
private void touchCancel()

Implements the touchCancel method of the DRT event sender object.

touchEndback to summary
private void touchEnd()

Implements the touchEnd method of the DRT event sender object.

touchMoveback to summary
private void touchMove()

Implements the touchMove method of the DRT event sender object.

touchStartback to summary
private void touchStart()

Implements the touchStart method of the DRT event sender object.

updateClickCountForButtonback to summary
private void updateClickCountForButton(int buttonNumber)
updateTouchPointback to summary
private void updateTouchPoint(int i, int x, int y)

Implements the updateTouchPoint method of the DRT event sender object.

zoomback to summary
private void zoom(boolean in, boolean textOnly)

Implements the textZoomIn, textZoomOut zoomPageInt, and zoomPageOut methods of the DRT event sender object.