abstract class DOMImpl
extends java.lang.Object
Constructor and Description |
---|
DOMImpl() |
Modifier and Type | Method and Description |
---|---|
void |
buttonClick(ButtonElement button) |
ButtonElement |
createButtonElement(Document doc,
java.lang.String type) |
InputElement |
createCheckInputElement(Document doc) |
Element |
createElement(Document doc,
java.lang.String tag) |
abstract NativeEvent |
createHtmlEvent(Document doc,
java.lang.String type,
boolean canBubble,
boolean cancelable) |
InputElement |
createInputElement(Document doc,
java.lang.String type) |
abstract InputElement |
createInputRadioElement(Document doc,
java.lang.String name) |
abstract NativeEvent |
createKeyCodeEvent(Document document,
java.lang.String type,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
int keyCode) |
abstract NativeEvent |
createKeyEvent(Document doc,
java.lang.String type,
boolean canBubble,
boolean cancelable,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
int keyCode,
int charCode)
Deprecated.
|
abstract NativeEvent |
createKeyPressEvent(Document document,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
int charCode) |
abstract NativeEvent |
createMouseEvent(Document doc,
java.lang.String type,
boolean canBubble,
boolean cancelable,
int detail,
int screenX,
int screenY,
int clientX,
int clientY,
boolean ctrlKey,
boolean altKey,
boolean shiftKey,
boolean metaKey,
int button,
Element relatedTarget) |
ScriptElement |
createScriptElement(Document doc,
java.lang.String source) |
void |
cssClearOpacity(Style style) |
java.lang.String |
cssFloatPropertyName() |
void |
cssSetOpacity(Style style,
double value) |
abstract void |
dispatchEvent(Element target,
NativeEvent evt) |
boolean |
eventGetAltKey(NativeEvent evt) |
int |
eventGetButton(NativeEvent evt) |
abstract int |
eventGetCharCode(NativeEvent evt) |
int |
eventGetClientX(NativeEvent evt) |
int |
eventGetClientY(NativeEvent evt) |
boolean |
eventGetCtrlKey(NativeEvent evt) |
EventTarget |
eventGetCurrentTarget(NativeEvent event) |
int |
eventGetKeyCode(NativeEvent evt) |
boolean |
eventGetMetaKey(NativeEvent evt) |
abstract int |
eventGetMouseWheelVelocityY(NativeEvent evt) |
abstract EventTarget |
eventGetRelatedTarget(NativeEvent nativeEvent) |
double |
eventGetRotation(NativeEvent evt) |
double |
eventGetScale(NativeEvent evt) |
int |
eventGetScreenX(NativeEvent evt) |
int |
eventGetScreenY(NativeEvent evt) |
boolean |
eventGetShiftKey(NativeEvent evt) |
abstract EventTarget |
eventGetTarget(NativeEvent evt) |
java.lang.String |
eventGetType(NativeEvent evt) |
abstract void |
eventPreventDefault(NativeEvent evt) |
void |
eventSetKeyCode(NativeEvent evt,
char key) |
void |
eventStopPropagation(NativeEvent evt) |
abstract java.lang.String |
eventToString(NativeEvent evt) |
int |
getAbsoluteLeft(Element elem) |
int |
getAbsoluteTop(Element elem) |
java.lang.String |
getAttribute(Element elem,
java.lang.String name) |
int |
getBodyOffsetLeft(Document doc) |
int |
getBodyOffsetTop(Document doc) |
JsArray<Touch> |
getChangedTouches(NativeEvent evt) |
(package private) Element |
getDocumentScrollingElement(Document doc) |
Element |
getFirstChildElement(Element elem) |
java.lang.String |
getInnerHTML(Element elem) |
java.lang.String |
getInnerText(Element node) |
Element |
getNextSiblingElement(Element elem) |
int |
getNodeType(Node node) |
java.lang.String |
getNumericStyleProperty(Style style,
java.lang.String name)
Returns a numeric style property (such as zIndex) that may need to be
coerced to a string.
|
Element |
getParentElement(Node node) |
Element |
getPreviousSiblingElement(Element elem) |
int |
getScrollLeft(Document doc) |
int |
getScrollLeft(Element elem) |
int |
getScrollTop(Document doc) |
java.lang.String |
getStyleProperty(Style style,
java.lang.String name) |
int |
getTabIndex(Element elem) |
java.lang.String |
getTagName(Element elem) |
JsArray<Touch> |
getTargetTouches(NativeEvent evt) |
JsArray<Touch> |
getTouches(NativeEvent evt) |
boolean |
hasAttribute(Element elem,
java.lang.String name) |
abstract boolean |
isOrHasChild(Node parent,
Node child) |
void |
scrollIntoView(Element elem) |
void |
selectAdd(SelectElement select,
OptionElement option,
OptionElement before) |
void |
selectClear(SelectElement select) |
int |
selectGetLength(SelectElement select) |
NodeList<OptionElement> |
selectGetOptions(SelectElement select) |
void |
selectRemoveOption(SelectElement select,
int index) |
void |
setDraggable(Element elem,
java.lang.String draggable) |
void |
setInnerText(Element elem,
java.lang.String text) |
void |
setScrollLeft(Document doc,
int left) |
void |
setScrollLeft(Element elem,
int left) |
void |
setScrollTop(Document doc,
int top) |
protected static int |
toInt32(double val)
Fast helper method to convert small doubles to 32-bit int.
|
java.lang.String |
toString(Element elem) |
int |
touchGetClientX(Touch touch) |
int |
touchGetClientY(Touch touch) |
int |
touchGetIdentifier(Touch touch) |
int |
touchGetPageX(Touch touch) |
int |
touchGetPageY(Touch touch) |
int |
touchGetScreenX(Touch touch) |
int |
touchGetScreenY(Touch touch) |
EventTarget |
touchGetTarget(Touch touch) |
static final DOMImpl impl
protected static int toInt32(double val)
Note: you should be aware that this uses JavaScript rounding and thus
does NOT provide the same semantics as int b = (int) someDouble;
.
In particular, if x is outside the range [-2^31,2^31), then toInt32(x) would return a value
equivalent to x modulo 2^32, whereas (int) x would evaluate to either MIN_INT or MAX_INT.
public void buttonClick(ButtonElement button)
public ButtonElement createButtonElement(Document doc, java.lang.String type)
public InputElement createCheckInputElement(Document doc)
public abstract NativeEvent createHtmlEvent(Document doc, java.lang.String type, boolean canBubble, boolean cancelable)
public InputElement createInputElement(Document doc, java.lang.String type)
public abstract InputElement createInputRadioElement(Document doc, java.lang.String name)
public abstract NativeEvent createKeyCodeEvent(Document document, java.lang.String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode)
@Deprecated public abstract NativeEvent createKeyEvent(Document doc, java.lang.String type, boolean canBubble, boolean cancelable, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode, int charCode)
public abstract NativeEvent createKeyPressEvent(Document document, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int charCode)
public abstract NativeEvent createMouseEvent(Document doc, java.lang.String type, boolean canBubble, boolean cancelable, int detail, int screenX, int screenY, int clientX, int clientY, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int button, Element relatedTarget)
public ScriptElement createScriptElement(Document doc, java.lang.String source)
public void cssClearOpacity(Style style)
public java.lang.String cssFloatPropertyName()
public void cssSetOpacity(Style style, double value)
public abstract void dispatchEvent(Element target, NativeEvent evt)
public boolean eventGetAltKey(NativeEvent evt)
public int eventGetButton(NativeEvent evt)
public abstract int eventGetCharCode(NativeEvent evt)
public int eventGetClientX(NativeEvent evt)
public int eventGetClientY(NativeEvent evt)
public boolean eventGetCtrlKey(NativeEvent evt)
public EventTarget eventGetCurrentTarget(NativeEvent event)
public final int eventGetKeyCode(NativeEvent evt)
public boolean eventGetMetaKey(NativeEvent evt)
public abstract int eventGetMouseWheelVelocityY(NativeEvent evt)
public abstract EventTarget eventGetRelatedTarget(NativeEvent nativeEvent)
public double eventGetRotation(NativeEvent evt)
public double eventGetScale(NativeEvent evt)
public int eventGetScreenX(NativeEvent evt)
public int eventGetScreenY(NativeEvent evt)
public boolean eventGetShiftKey(NativeEvent evt)
public abstract EventTarget eventGetTarget(NativeEvent evt)
public final java.lang.String eventGetType(NativeEvent evt)
public abstract void eventPreventDefault(NativeEvent evt)
public void eventSetKeyCode(NativeEvent evt, char key)
public void eventStopPropagation(NativeEvent evt)
public abstract java.lang.String eventToString(NativeEvent evt)
public int getAbsoluteLeft(Element elem)
public int getAbsoluteTop(Element elem)
public java.lang.String getAttribute(Element elem, java.lang.String name)
public int getBodyOffsetLeft(Document doc)
public int getBodyOffsetTop(Document doc)
public JsArray<Touch> getChangedTouches(NativeEvent evt)
public java.lang.String getInnerHTML(Element elem)
public java.lang.String getInnerText(Element node)
public int getNodeType(Node node)
public java.lang.String getNumericStyleProperty(Style style, java.lang.String name)
public int getScrollLeft(Document doc)
public int getScrollLeft(Element elem)
public int getScrollTop(Document doc)
public java.lang.String getStyleProperty(Style style, java.lang.String name)
public int getTabIndex(Element elem)
public java.lang.String getTagName(Element elem)
public JsArray<Touch> getTargetTouches(NativeEvent evt)
public JsArray<Touch> getTouches(NativeEvent evt)
public boolean hasAttribute(Element elem, java.lang.String name)
public void scrollIntoView(Element elem)
public void selectAdd(SelectElement select, OptionElement option, OptionElement before)
public void selectClear(SelectElement select)
public int selectGetLength(SelectElement select)
public NodeList<OptionElement> selectGetOptions(SelectElement select)
public void selectRemoveOption(SelectElement select, int index)
public void setDraggable(Element elem, java.lang.String draggable)
public void setInnerText(Element elem, java.lang.String text)
public void setScrollLeft(Document doc, int left)
public void setScrollLeft(Element elem, int left)
public void setScrollTop(Document doc, int top)
public java.lang.String toString(Element elem)
public int touchGetClientX(Touch touch)
public int touchGetClientY(Touch touch)
public int touchGetIdentifier(Touch touch)
public int touchGetPageX(Touch touch)
public int touchGetPageY(Touch touch)
public int touchGetScreenX(Touch touch)
public int touchGetScreenY(Touch touch)
public EventTarget touchGetTarget(Touch touch)