Package com.google.gwt.dom.client
Class DOMImpl
java.lang.Object
com.google.gwt.dom.client.DOMImpl
- Direct Known Subclasses:
DOMImplStandard
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buttonClick
(ButtonElement button) createButtonElement
(Document doc, String type) createElement
(Document doc, String tag) abstract NativeEvent
createHtmlEvent
(Document doc, String type, boolean canBubble, boolean cancelable) createInputElement
(Document doc, String type) abstract InputElement
createInputRadioElement
(Document doc, String name) abstract NativeEvent
createKeyCodeEvent
(Document document, String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode) abstract NativeEvent
createKeyEvent
(Document doc, 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, 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) createScriptElement
(Document doc, String source) void
cssClearOpacity
(Style style) void
cssSetOpacity
(Style style, double value) abstract void
dispatchEvent
(Element target, NativeEvent evt) boolean
int
abstract int
int
int
boolean
eventGetCurrentTarget
(NativeEvent event) final int
boolean
int
abstract EventTarget
eventGetRelatedTarget
(NativeEvent nativeEvent) double
double
eventGetScale
(NativeEvent evt) int
int
boolean
abstract EventTarget
final String
eventGetType
(NativeEvent evt) abstract void
void
eventSetKeyCode
(NativeEvent evt, char key) void
abstract String
eventToString
(NativeEvent evt) int
getAbsoluteLeft
(Element elem) int
getAbsoluteTop
(Element elem) getAttribute
(Element elem, String name) int
int
getBodyOffsetTop
(Document doc) (package private) Element
getFirstChildElement
(Element elem) getInnerHTML
(Element elem) getInnerText
(Element node) getNextSiblingElement
(Element elem) int
getNodeType
(Node node) getNumericStyleProperty
(Style style, String name) Returns a numeric style property (such as zIndex) that may need to be coerced to a string.getParentElement
(Node node) int
getScrollLeft
(Document doc) int
getScrollLeft
(Element elem) int
getScrollTop
(Document doc) getStyleProperty
(Style style, String name) int
getTabIndex
(Element elem) getTagName
(Element elem) getTouches
(NativeEvent evt) boolean
hasAttribute
(Element elem, 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) selectGetOptions
(SelectElement select) void
selectRemoveOption
(SelectElement select, int index) void
setDraggable
(Element elem, String draggable) void
setInnerText
(Element elem, 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.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) touchGetTarget
(Touch touch)
-
Field Details
-
impl
-
-
Constructor Details
-
DOMImpl
DOMImpl()
-
-
Method Details
-
toInt32
protected static int toInt32(double val) Fast helper method to convert small doubles to 32-bit int.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. -
buttonClick
-
createButtonElement
-
createCheckInputElement
-
createElement
-
createHtmlEvent
public abstract NativeEvent createHtmlEvent(Document doc, String type, boolean canBubble, boolean cancelable) -
createInputElement
-
createInputRadioElement
-
createKeyCodeEvent
public abstract NativeEvent createKeyCodeEvent(Document document, String type, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode) -
createKeyEvent
@Deprecated public abstract NativeEvent createKeyEvent(Document doc, String type, boolean canBubble, boolean cancelable, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int keyCode, int charCode) Deprecated. -
createKeyPressEvent
public abstract NativeEvent createKeyPressEvent(Document document, boolean ctrlKey, boolean altKey, boolean shiftKey, boolean metaKey, int charCode) -
createMouseEvent
public abstract NativeEvent createMouseEvent(Document doc, 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) -
createScriptElement
-
cssClearOpacity
-
cssFloatPropertyName
-
cssSetOpacity
-
dispatchEvent
-
eventGetAltKey
-
eventGetButton
-
eventGetCharCode
-
eventGetClientX
-
eventGetClientY
-
eventGetCtrlKey
-
eventGetCurrentTarget
-
eventGetKeyCode
-
eventGetMetaKey
-
eventGetMouseWheelVelocityY
-
eventGetRelatedTarget
-
eventGetRotation
-
eventGetScale
-
eventGetScreenX
-
eventGetScreenY
-
eventGetShiftKey
-
eventGetTarget
-
eventGetType
-
eventPreventDefault
-
eventSetKeyCode
-
eventStopPropagation
-
eventToString
-
getAbsoluteLeft
-
getAbsoluteTop
-
getAttribute
-
getBodyOffsetLeft
-
getBodyOffsetTop
-
getChangedTouches
-
getFirstChildElement
-
getInnerHTML
-
getInnerText
-
getNextSiblingElement
-
getNodeType
-
getNumericStyleProperty
Returns a numeric style property (such as zIndex) that may need to be coerced to a string. -
getParentElement
-
getPreviousSiblingElement
-
getScrollLeft
-
getScrollLeft
-
getScrollTop
-
getStyleProperty
-
getTabIndex
-
getTagName
-
getTargetTouches
-
getTouches
-
hasAttribute
-
isOrHasChild
-
scrollIntoView
-
selectAdd
-
selectClear
-
selectGetLength
-
selectGetOptions
-
selectRemoveOption
-
setDraggable
-
setInnerText
-
setScrollLeft
-
setScrollLeft
-
setScrollTop
-
toString
-
getDocumentScrollingElement
-
touchGetClientX
-
touchGetClientY
-
touchGetIdentifier
-
touchGetPageX
-
touchGetPageY
-
touchGetScreenX
-
touchGetScreenY
-
touchGetTarget
-