2004.04.29


com.jdc.gui.html.tag
Class Title

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

public class Title
extends ComplexTag

Title represents an HTML document TITLE element. The TITLE element provides the document's title. Each document may have exactly one TITLE element within the HEAD element. TITLE may contain plain text and entities; it may not contain other markup.

A good TITLE should be short and specific to the document's content so that it may be used as a title for a user's bookmark, a title for the display window by browsers, and a link from a search engine. A suggested limit for the number of characters in a TITLE is 60.

Reference: The TITLE 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
Title()
          Constructs a new Title object.
 
Method Summary
 String create(String text)
          Returns the HTML required to create a title in a browser.
 String endTag()
          Returns a title end tag.
 String getText()
          Returns the title text.
 Title setText(String text)
          Sets the title text.
 String startTag()
          Returns a title start tag.
 String toString()
          Returns the HTML required to create a title in a browser.
 
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, getAttributes, getBody, getIdentifier, setBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Title

public Title()
Constructs a new Title object.

Method Detail

create

public String create(String text)
Returns the HTML required to create a title in a browser.

Overrides:
create in class ComplexTag
Returns:
An HTML title String.

startTag

public String startTag()
Returns a title start tag.

Overrides:
startTag in class ComplexTag
Returns:
A title start tag.

endTag

public String endTag()
Returns a title end tag.

Overrides:
endTag in class ComplexTag
Returns:
A title end tag.

getText

public String getText()
Returns the title text.

Returns:
The title text.

setText

public Title setText(String text)
Sets the title text.

Returns:
This title tag;

toString

public String toString()
Returns the HTML required to create a title in a browser.

Overrides:
toString in class ComplexTag
Returns:
An HTML title String.

2004.04.29



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