|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.Node
org.xwiki.gwt.dom.client.DocumentFragment
public final class DocumentFragment
A fragment of a DOM document.
We've added this class because at the time of writing GWT doesn't offer a similar implementation.
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.dom.client.Node |
|---|
DOCUMENT_NODE, ELEMENT_NODE, TEXT_NODE |
| Constructor Summary | |
|---|---|
protected |
DocumentFragment()
Default constructor. |
| Method Summary | |
|---|---|
static DocumentFragment |
as(com.google.gwt.dom.client.Node node)
Assert that the given Node is a DocumentFragment and automatically typecast it. |
String |
getInnerHTML()
|
String |
getInnerText()
|
static boolean |
is(com.google.gwt.dom.client.Node node)
Determine whether the given Node can be cast to a DocumentFragment. |
| Methods inherited from class com.google.gwt.dom.client.Node |
|---|
appendChild, as, cloneNode, getChild, getChildCount, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, hasChildNodes, hasParentElement, insertAfter, insertBefore, insertFirst, is, isOrHasChild, removeChild, removeFromParent, replaceChild, setNodeValue |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DocumentFragment()
| Method Detail |
|---|
public static boolean is(com.google.gwt.dom.client.Node node)
Node can be cast to a DocumentFragment. A null node will
cause this method to return false.
node - a DOM node
true if the given node is a document fragment, false otherwisepublic static DocumentFragment as(com.google.gwt.dom.client.Node node)
Node is a DocumentFragment and automatically typecast it.
node - a document fragment DOM node
public String getInnerHTML()
public String getInnerText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||