eventSystemIsInitialized
Constructor and Description |
---|
DOMImplStandard() |
Modifier and Type | Method and Description |
---|---|
static void |
addBitlessEventDispatchers(JavaScriptObject eventMap)
Adds custom bitless event dispatchers to GWT.
|
static void |
addCaptureEventDispatchers(JavaScriptObject eventMap)
Adds custom capture event dispatchers to GWT.
|
Element |
eventGetFromElement(Event evt) |
Element |
eventGetToElement(Event evt) |
Element |
getChild(Element elem,
int index) |
int |
getChildCount(Element elem) |
int |
getChildIndex(Element parent,
Element toFind) |
protected void |
initEventSystem()
Initializes the event dispatch system.
|
void |
insertChild(Element parent,
Element toAdd,
int index) |
void |
releaseCapture(Element elem) |
void |
setCapture(Element elem) |
void |
sinkBitlessEvent(Element elem,
String eventTypeName) |
protected void |
sinkBitlessEventImpl(Element elem,
String eventTypeName) |
void |
sinkEvents(Element elem,
int bits) |
protected void |
sinkEventsImpl(Element elem,
int bits) |
eventCancelBubble, eventGetRepeat, eventGetTypeInt, eventGetTypeInt, eventSetKeyCode, getEventListener, getEventsSunk, maybeInitializeEventSystem, setEventListener
public static void addBitlessEventDispatchers(JavaScriptObject eventMap)
Example usage:
static { DOMImplStandard.addBitlessEventDispatchers(getMyCustomDispatchers()); } private static native JavaScriptObject getMyCustomDispatchers() /*-{ return { click: @com.xxx.YYY::myCustomDispatcher(*), ... }; }-* /;
Note that although this method is public for extensions, it is subject to change in different releases.
eventMap
- an object that provides dispatching methods keyed with the name of the eventpublic static void addCaptureEventDispatchers(JavaScriptObject eventMap)
Example usage:
static { if (isIE10Plus())) { DOMImplStandard.addCaptureEventDispatchers(getMsPointerCaptureDispatchers()); } } private static native JavaScriptObject getMsPointerCaptureDispatchers() /*-{ return { MSPointerDown: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*), MSPointerUp: @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent(*), ... }; }-* /;
Note that although this method is public for extensions, it is subject to change in different releases.
eventMap
- an object that provides dispatching methods keyed with the name of the eventpublic Element eventGetFromElement(Event evt)
eventGetFromElement
in class DOMImpl
public Element eventGetToElement(Event evt)
eventGetToElement
in class DOMImpl
public int getChildCount(Element elem)
getChildCount
in class DOMImpl
public int getChildIndex(Element parent, Element toFind)
getChildIndex
in class DOMImpl
public void insertChild(Element parent, Element toAdd, int index)
insertChild
in class DOMImpl
public void releaseCapture(Element elem)
releaseCapture
in class DOMImpl
public void setCapture(Element elem)
setCapture
in class DOMImpl
public void sinkBitlessEvent(Element elem, String eventTypeName)
sinkBitlessEvent
in class DOMImpl
public void sinkEvents(Element elem, int bits)
sinkEvents
in class DOMImpl
protected void initEventSystem()
DOMImpl
initEventSystem
in class DOMImpl
protected void sinkEventsImpl(Element elem, int bits)
Copyright © 2018. All rights reserved.