API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.html. HTMLDocument View Source
Author(s)
Since
Version
Serial
Hierarchy
 Node
      Document
          HTMLDocument
Subinterfaces
Description
public interface HTMLDocument
  An HTMLDocument is the root of the HTML hierarchy and holds the entire content.
See also:   
Methods
Hide/Show inherited methods
public void close ()
Closes a document stream opened by open() and forces rendering.
public HTMLCollection getAnchors ()
  A collection of all the anchor (A ) elements in a document with a value for the name attribute.
public HTMLCollection getApplets ()
A collection of all the OBJECT elements that include applets and APPLET ( deprecated ) elements in a document.
public HTMLElement getBody ()
  The element that contains the content for the document.
public String getCookie ()
  The cookies associated with this document.
public String getDomain ()
The domain name of the server that served the document, or null if the server cannot be identified by a domain name.
public NodeList getElementsByName (String elementName)
  Returns the (possibly empty) collection of elements whose name value is given by elementName .
public HTMLCollection getForms ()
A collection of all the forms of a document.
public HTMLCollection getImages ()
  A collection of all the IMG elements in a document.
public HTMLCollection getLinks ()
A collection of all AREA elements and anchor ( A ) elements in a document with a value for the href attribute.
public String getReferrer ()
  Returns the URI of the page that linked to this page.
public String getTitle ()
The title of a document as specified by the TITLE element in the head of the document.
public String getURL ()
The complete URI of the document.
public void open ()
  Note.
public void setBody (HTMLElement body)
public void setCookie (String cookie)
public void setTitle (String title)
public void write (String text)
  Write a string of text to a document stream opened by open() .
public void writeln (String text)
  Write a string of text followed by a newline character to a document stream opened by open() .
Fields
Hide/Show inherited fields
publicfinalstatic short ATTRIBUTE_NODE = "2" [Inherited From Document]
The node is an Attr.
publicfinalstatic short CDATA_SECTION_NODE = "4" [Inherited From Document]
The node is a CDATASection.
publicfinalstatic short COMMENT_NODE = "8" [Inherited From Document]
The node is a Comment.
publicfinalstatic short DOCUMENT_FRAGMENT_NODE = "11" [Inherited From Document]
The node is a DocumentFragment.
publicfinalstatic short DOCUMENT_NODE = "9" [Inherited From Document]
The node is a Document.
publicfinalstatic short DOCUMENT_POSITION_CONTAINED_BY = "16" [Inherited From Document]
  The node is contained by the reference node.
publicfinalstatic short DOCUMENT_POSITION_CONTAINS = "8" [Inherited From Document]
  The node contains the reference node.
publicfinalstatic short DOCUMENT_POSITION_DISCONNECTED = "1" [Inherited From Document]
  The two nodes are disconnected.
publicfinalstatic short DOCUMENT_POSITION_FOLLOWING = "4" [Inherited From Document]
The node follows the reference node.
publicfinalstatic short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = "32" [Inherited From Document]
The determination of preceding versus following is implementation-specific.
publicfinalstatic short DOCUMENT_POSITION_PRECEDING = "2" [Inherited From Document]
The second node precedes the reference node.
publicfinalstatic short DOCUMENT_TYPE_NODE = "10" [Inherited From Document]
The node is a DocumentType.
publicfinalstatic short ELEMENT_NODE = "1" [Inherited From Document]
The node is an Element.
publicfinalstatic short ENTITY_NODE = "6" [Inherited From Document]
The node is an Entity.
publicfinalstatic short ENTITY_REFERENCE_NODE = "5" [Inherited From Document]
The node is an EntityReference.
publicfinalstatic short NOTATION_NODE = "12" [Inherited From Document]
The node is a Notation.
publicfinalstatic short PROCESSING_INSTRUCTION_NODE = "7" [Inherited From Document]
The node is a ProcessingInstruction.
publicfinalstatic short TEXT_NODE = "3" [Inherited From Document]
The node is a Text node.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar