Java Doc for HTMLDocument.java in  » Web-Server » Rimfaxe-Web-Server » org » w3c » dom » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » Rimfaxe Web Server » org.w3c.dom.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.html.HTMLDocument

All known Subclasses:   org.apache.html.dom.HTMLDocumentImpl,
HTMLDocument
public interface HTMLDocument extends Document(Code)
An HTMLDocument is the root of the HTML hierarchy and holds the entire content. Besides providing access to the hierarchy, it also provides some convenience methods for accessing certain sets of information from the document.

The following properties have been deprecated in favor of the corresponding ones for the BODY element: alinkColor background bgColor fgColor linkColor vlinkColor In DOM Level 2, the method getElementById is inherited from the Document interface where it was moved.

See also the Document Object Model (DOM) Level 2 Specification.





Method Summary
public  voidclose()
     Closes a document stream opened by open() and forces rendering.
public  HTMLCollectiongetAnchors()
     A collection of all the anchor (A ) elements in a document with a value for the name attribute.
public  HTMLCollectiongetApplets()
     A collection of all the OBJECT elements that include applets and APPLET ( deprecated ) elements in a document.
public  HTMLElementgetBody()
     The element that contains the content for the document.
public  StringgetCookie()
     The cookies associated with this document.
public  StringgetDomain()
     The domain name of the server that served the document, or null if the server cannot be identified by a domain name.
public  NodeListgetElementsByName(String elementName)
     Returns the (possibly empty) collection of elements whose name value is given by elementName .
Parameters:
  elementName - The name attribute value for an element.
public  HTMLCollectiongetForms()
     A collection of all the forms of a document.
public  HTMLCollectiongetImages()
     A collection of all the IMG elements in a document.
public  HTMLCollectiongetLinks()
     A collection of all AREA elements and anchor ( A ) elements in a document with a value for the href attribute.
public  StringgetReferrer()
     Returns the URI of the page that linked to this page.
public  StringgetTitle()
     The title of a document as specified by the TITLE element in the head of the document.
public  StringgetURL()
     The complete URI of the document.
public  voidopen()
     Note.
public  voidsetBody(HTMLElement body)
    
public  voidsetCookie(String cookie)
    
public  voidsetTitle(String title)
    
public  voidwrite(String text)
     Write a string of text to a document stream opened by open() .
public  voidwriteln(String text)
     Write a string of text followed by a newline character to a document stream opened by open() .



Method Detail
close
public void close()(Code)
Closes a document stream opened by open() and forces rendering.



getAnchors
public HTMLCollection getAnchors()(Code)
A collection of all the anchor (A ) elements in a document with a value for the name attribute. Note. For reasons of backwards compatibility, the returned set of anchors only contains those anchors created with the name attribute, not those created with the id attribute.



getApplets
public HTMLCollection getApplets()(Code)
A collection of all the OBJECT elements that include applets and APPLET ( deprecated ) elements in a document.



getBody
public HTMLElement getBody()(Code)
The element that contains the content for the document. In documents with BODY contents, returns the BODY element. In frameset documents, this returns the outermost FRAMESET element.



getCookie
public String getCookie()(Code)
The cookies associated with this document. If there are none, the value is an empty string. Otherwise, the value is a string: a semicolon-delimited list of "name, value" pairs for all the cookies associated with the page. For example, name=value;expires=date .



getDomain
public String getDomain()(Code)
The domain name of the server that served the document, or null if the server cannot be identified by a domain name.



getElementsByName
public NodeList getElementsByName(String elementName)(Code)
Returns the (possibly empty) collection of elements whose name value is given by elementName .
Parameters:
  elementName - The name attribute value for an element. The matching elements.



getForms
public HTMLCollection getForms()(Code)
A collection of all the forms of a document.



getImages
public HTMLCollection getImages()(Code)
A collection of all the IMG elements in a document. The behavior is limited to IMG elements for backwards compatibility.



getLinks
public HTMLCollection getLinks()(Code)
A collection of all AREA elements and anchor ( A ) elements in a document with a value for the href attribute.



getReferrer
public String getReferrer()(Code)
Returns the URI of the page that linked to this page. The value is an empty string if the user navigated to the page directly (not through a link, but, for example, via a bookmark).



getTitle
public String getTitle()(Code)
The title of a document as specified by the TITLE element in the head of the document.



getURL
public String getURL()(Code)
The complete URI of the document.



open
public void open()(Code)
Note. This method and the ones following allow a user to add to or replace the structure model of a document using strings of unparsed HTML. At the time of writing alternate methods for providing similar functionality for both HTML and XML documents were being considered. The following methods may be deprecated at some point in the future in favor of a more general-purpose mechanism.
Open a document stream for writing. If a document exists in the target, this method clears it.



setBody
public void setBody(HTMLElement body)(Code)



setCookie
public void setCookie(String cookie)(Code)



setTitle
public void setTitle(String title)(Code)



write
public void write(String text)(Code)
Write a string of text to a document stream opened by open() . The text is parsed into the document's structure model.
Parameters:
  text - The string to be parsed into some structure in the document structure model.



writeln
public void writeln(String text)(Code)
Write a string of text followed by a newline character to a document stream opened by open() . The text is parsed into the document's structure model.
Parameters:
  text - The string to be parsed into some structure in the document structure model.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.