BEA Systems, Inc.

WebLogic Server 5.1.0 API Reference

Class TitleElement


public class TitleElement
extends SinglePartElement

A TitleElement is used to add TITLE information to the head portion of an HtmlPage. The title does not appear on the page but may be displayed at the top of the browser window. HTML 2.0 and above requires a page title; the only element required on an HTML page is the Title element. Add the TitleElement to an HtmlPage after the HtmlPage.getHead() method with HtmlElement.addElement().

Copyright (c) 1996-97, by Weblogic, Inc. All Rights Reserved.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.

Fields inherited from class weblogic.html.HtmlElement
codeset, useObsolete
Constructor Summary
          Constructs an empty TitleElement.
TitleElement(java.lang.String title)
          Constructs a TitleElement with the specified string.
Method Summary
protected  java.lang.String getHtmlCode()
protected  boolean printBody()
protected  boolean printCR()
protected  boolean printEndingTag()
Methods inherited from class weblogic.html.SinglePartElement
getElement, printBody, printBody, printBody, setElement, setElement, widthAsLiteral
Methods inherited from class weblogic.html.ElementWithAttributes
addAttribute, addAttribute, escapeQuotes, getBooleanAttribute, getElementAttribute, getLocalVar, getQuotedAttribute, output, output, output, setBooleanAttribute, setBooleanAttribute, setClass, setDirection, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setElementAttribute, setId, setLang, setLocalVar, setQuotedAttribute, setStyle
Methods inherited from class weblogic.html.HtmlElement
asAnchorElement, asBigElement, asBlockquoteElement, asBoldElement, asCenteredElement, asCiteElement, asCodeElement, asCommentElement, asDefineTermElement, asEmphasisElement, asFontElement, asFontElement, asFontElement, asHtmlContainer, asItalicElement, asKeyboardElement, asLiteralElement, asParagraphElement, asSampleElement, asSmallElement, asStrikeElement, asStrongElement, asSubscriptElement, asSuperscriptElement, asTeletypeElement, asUnderlineElement, asVariableElement, getVersion, setAnchorMode, setCodeset, toString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public TitleElement()
Constructs an empty TitleElement.


public TitleElement(java.lang.String title)
Constructs a TitleElement with the specified string.
Method Detail


protected java.lang.String getHtmlCode()

getHtmlCode in class ElementWithAttributes


protected boolean printCR()

printCR in class ElementWithAttributes


protected boolean printEndingTag()

printEndingTag in class ElementWithAttributes


protected boolean printBody()

printBody in class ElementWithAttributes

Documentation is available at