Package | Description |
---|---|
com.google.gwt.dom.client |
Classes for low-level DOM programming.
|
Modifier and Type | Class and Description |
---|---|
class |
NodeCollection<T extends Node>
An ElementCollection is a list of nodes.
|
class |
NodeList<T extends Node>
The NodeList interface provides the abstraction of an ordered collection of
nodes, without defining or constraining how this collection is implemented.
|
Modifier and Type | Class and Description |
---|---|
class |
Document
A Document is the root of the HTML hierarchy and holds the entire content.
|
class |
Element
All HTML element interfaces derive from this class.
|
class |
Text
The Text interface represents textual content.
|
Modifier and Type | Method and Description |
---|---|
<T extends Node> |
Node.appendChild(T newChild)
Adds the node newChild to the end of the list of children of this node.
|
Modifier and Type | Method and Description |
---|---|
static Node |
Node.as(JavaScriptObject o)
Assert that the given
JavaScriptObject is a DOM node and
automatically typecast it. |
Node |
Node.cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes.
|
Node |
Node.getChild(int index)
Gets the child node at the given index.
|
Node |
Node.getFirstChild()
The first child of this node.
|
Node |
Node.getLastChild()
The last child of this node.
|
Node |
Node.getNextSibling()
The node immediately following this node.
|
Node |
Node.getParentNode()
The parent of this node.
|
Node |
Node.getPreviousSibling()
The node immediately preceding this node.
|
Node |
Node.insertAfter(Node newChild,
Node refChild)
Inserts the node newChild after the existing child node refChild.
|
Node |
Node.insertBefore(Node newChild,
Node refChild)
Inserts the node newChild before the existing child node refChild.
|
Node |
Node.insertFirst(Node child)
Inserts the given child as the first child of this node.
|
Node |
Node.removeAllChildren()
Remove all children of the node.
|
Node |
Node.removeChild(Node oldChild)
Removes the child node indicated by oldChild from the list of children, and
returns it.
|
Node |
Node.replaceChild(Node newChild,
Node oldChild)
Replaces the child node oldChild with newChild in the list of children, and
returns the oldChild node.
|
Modifier and Type | Method and Description |
---|---|
NodeList<Node> |
Node.getChildNodes()
A NodeList that contains all children of this node.
|
Modifier and Type | Method and Description |
---|---|
static Element |
Element.as(Node node)
|
static Text |
Text.as(Node node)
Assert that the given
Node is of type Node.TEXT_NODE and
automatically typecast it. |
void |
Document.importNode(Node node,
boolean deep)
Imports a node from another document to this document.
|
Node |
Node.insertAfter(Node newChild,
Node refChild)
Inserts the node newChild after the existing child node refChild.
|
Node |
Node.insertBefore(Node newChild,
Node refChild)
Inserts the node newChild before the existing child node refChild.
|
Node |
Node.insertFirst(Node child)
Inserts the given child as the first child of this node.
|
static boolean |
ButtonElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
AreaElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
Element.is(Node node)
|
static boolean |
TableSectionElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
TableCellElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
DivElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
ModElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
UListElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
MapElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
HeadingElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
OptGroupElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
StyleElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
LIElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
ParagraphElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
FormElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
SpanElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
FrameElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
MetaElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
SelectElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
TableRowElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
ScriptElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
OListElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
DListElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
SourceElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
PreElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
LabelElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
QuoteElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
LegendElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
TextAreaElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
FrameSetElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
IFrameElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
ParamElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
FieldSetElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
BRElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
ImageElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
BaseElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
HRElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
TableCaptionElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
TableElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
ObjectElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
TitleElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
BodyElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
LinkElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
InputElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
TableColElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
HeadElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
AnchorElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
static boolean |
OptionElement.is(Node node)
Determine whether the given
Node can be cast to this class. |
boolean |
Node.isOrHasChild(Node child)
Determine whether a node is equal to, or the child of, this node.
|
Node |
Node.removeChild(Node oldChild)
Removes the child node indicated by oldChild from the list of children, and
returns it.
|
Node |
Node.replaceChild(Node newChild,
Node oldChild)
Replaces the child node oldChild with newChild in the list of children, and
returns the oldChild node.
|
Copyright © 2018. All rights reserved.