org.xwiki.gwt.dom.client
Class DocumentFragment

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.Node
          extended by org.xwiki.gwt.dom.client.DocumentFragment

public final class DocumentFragment
extends com.google.gwt.dom.client.Node

A fragment of a DOM document.
We've added this class because at the time of writing GWT doesn't offer a similar implementation.

Version:
$Id: DocumentFragment.java 20042 2009-05-16 12:12:50Z sdumitriu $
See Also:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2955

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
 java.lang.String getInnerHTML()
           
 java.lang.String getInnerText()
           
 
Methods inherited from class com.google.gwt.dom.client.Node
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild, setNodeValue
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentFragment

protected DocumentFragment()
Default constructor. Needs to be protected because all instances are created from JavaScript.

Method Detail

getInnerHTML

public java.lang.String getInnerHTML()
Returns:
the HTML serialization of this document fragment

getInnerText

public java.lang.String getInnerText()
Returns:
the text, without mark-up, found within this document fragment


Copyright © 2004-2009 XWiki. All Rights Reserved.