|
NextApp Echo2 v2.1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.webrender.output.XmlDocument
nextapp.echo2.webrender.output.HtmlDocument
public class HtmlDocument
A simple wrapper around JAXP/W3C DOM APIs to generate and render an XHTML 1.0 Transitional document.
Field Summary | |
---|---|
static java.lang.String |
XHTML_1_0_NAMESPACE_URI
|
static java.lang.String |
XHTML_1_0_TRANSITIONAL_PUBLIC_ID
|
static java.lang.String |
XHTML_1_0_TRANSITIONAL_SYSTSEM_ID
|
Constructor Summary | |
---|---|
HtmlDocument(java.lang.String publicId,
java.lang.String systemId,
java.lang.String namespaceUri)
Creates a new HtmlDocument . |
Method Summary | |
---|---|
void |
addJavaScriptInclude(java.lang.String uri)
Adds a JavaScript include reference to the document. |
void |
addJavaScriptText(java.lang.String code)
Adds inline JavaScript code to the document. |
org.w3c.dom.Element |
getBodyElement()
Retrieves the BODY element of the document. |
org.w3c.dom.Element |
getHeadElement()
Retrieves the HEAD element of the document. |
void |
setGenarator(java.lang.String value)
Sets the value of the "generator" META element. |
void |
setTitle(java.lang.String value)
Convenience method to set the title of the document. |
Methods inherited from class nextapp.echo2.webrender.output.XmlDocument |
---|
getDocument, render, setOutputProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XHTML_1_0_TRANSITIONAL_PUBLIC_ID
public static final java.lang.String XHTML_1_0_TRANSITIONAL_SYSTSEM_ID
public static final java.lang.String XHTML_1_0_NAMESPACE_URI
Constructor Detail |
---|
public HtmlDocument(java.lang.String publicId, java.lang.String systemId, java.lang.String namespaceUri)
HtmlDocument
.
Method Detail |
---|
public void addJavaScriptText(java.lang.String code)
code
- the inline codepublic void addJavaScriptInclude(java.lang.String uri)
uri
- the URI of the JavaScript codepublic org.w3c.dom.Element getBodyElement()
public org.w3c.dom.Element getHeadElement()
public void setGenarator(java.lang.String value)
value
- the valuepublic void setTitle(java.lang.String value)
value
- The new title value.
|
NextApp Echo2 v2.1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |