public abstract class DOMImpl extends Object
DOM
.Modifier and Type | Field and Description |
---|---|
protected static boolean |
eventSystemIsInitialized |
Constructor and Description |
---|
DOMImpl() |
Modifier and Type | Method and Description |
---|---|
static void |
addDisposableEvent(Element elem,
String event,
JavaScriptObject handler,
boolean capture)
Registers a raw DOM event listener to be cleaned up when the module is unloaded.
|
static void |
cleanupDOM(DOMImpl dom)
Scan all DOM elements looking for event listeners from our module and remove event listeners from them.
|
protected abstract void |
disposeEventSystem() |
void |
eventCancelBubble(Event evt,
boolean cancel) |
abstract Element |
eventGetFromElement(Event evt) |
boolean |
eventGetRepeat(Event evt) |
abstract Element |
eventGetToElement(Event evt) |
int |
eventGetTypeInt(Event evt) |
int |
eventGetTypeInt(String eventType) |
void |
eventSetKeyCode(Event evt,
char key) |
abstract Element |
getChild(Element elem,
int index) |
abstract int |
getChildCount(Element elem) |
abstract int |
getChildIndex(Element parent,
Element child) |
static EventListener |
getEventListener(Element elem) |
int |
getEventsSunk(Element elem) |
protected abstract void |
initEventSystem()
Initializes the event dispatch system.
|
abstract void |
insertChild(Element parent,
Element child,
int index) |
void |
maybeInitializeEventSystem() |
abstract void |
releaseCapture(Element elem) |
abstract void |
setCapture(Element elem) |
static void |
setEventListener(Element elem,
EventListener listener) |
abstract void |
sinkBitlessEvent(Element elem,
String eventTypeName) |
abstract void |
sinkEvents(Element elem,
int eventBits) |
public static void addDisposableEvent(Element elem, String event, JavaScriptObject handler, boolean capture)
public static void cleanupDOM(DOMImpl dom)
dom
- public static EventListener getEventListener(Element elem)
public static void setEventListener(Element elem, EventListener listener)
public void eventCancelBubble(Event evt, boolean cancel)
public boolean eventGetRepeat(Event evt)
public final int eventGetTypeInt(Event evt)
public int eventGetTypeInt(String eventType)
public void eventSetKeyCode(Event evt, char key)
public abstract int getChildCount(Element elem)
public int getEventsSunk(Element elem)
public void maybeInitializeEventSystem()
public abstract void releaseCapture(Element elem)
public abstract void setCapture(Element elem)
public abstract void sinkEvents(Element elem, int eventBits)
protected abstract void disposeEventSystem()
protected abstract void initEventSystem()
Copyright © 2018. All rights reserved.