2004.04.29


com.jdc.gui.html.tag
Class Html

java.lang.Object
  |
  +--com.jdc.xml.ComplexTag
        |
        +--com.jdc.gui.html.ComplexTag
              |
              +--com.jdc.gui.html.tag.Html
All Implemented Interfaces:
MarkupLanguage, Serializable

public class Html
extends ComplexTag

Html contains the HTML document, made up of the HEAD followed by the BODY, except in Frameset documents where the FRAMESET element replaces the BODY. The start and end tags of the HTML element are both optional.

The LANG attribute is typically set on the HTML element to specify the base language of the document. The language should be specified according to RFC 1766; examples include en for English, en-US for American English, and ja for Japanese.

Reference: The HTML element

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jdc.gui.html.MarkupLanguage
XHTML
 
Constructor Summary
Html()
          Constructs a new Html object.
 
Method Summary
 Html setLanguage(String language)
          Sets the base language of the text content and attribute values.
 Html setNamespace()
          Sets the default namespace to "http://www.w3.org/1999/xhtml".
 Html setNamespace(String namespace)
          Sets the default namespace.
 
Methods inherited from class com.jdc.gui.html.ComplexTag
addAttribute, create, create, endTag, setFormat, setIdentifier, startTag
 
Methods inherited from class com.jdc.xml.ComplexTag
addAttribute, create, create, endTag, getAttributes, getBody, getIdentifier, setBody, startTag, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Html

public Html()
Constructs a new Html object.

Method Detail

setLanguage

public Html setLanguage(String language)
Sets the base language of the text content and attribute values. [RFC1766] defines and explains the language codes that may be used in HTML documents.

Returns:
This Html tag.

setNamespace

public Html setNamespace()
Sets the default namespace to "http://www.w3.org/1999/xhtml".

Returns:
This Html tag.

setNamespace

public Html setNamespace(String namespace)
Sets the default namespace.

Reference: Namespaces in XML

Returns:
This Html tag.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.