|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.html.HtmlElement | +--weblogic.html.ElementWithAttributes | +--weblogic.html.SinglePartElement | +--weblogic.html.HeadingElement
HeadingElement objects are used to add HTML headings (H1, H2, etc.) to an htmlKona page. The heading level defaults to 1 if not specified. HTML 2.0 and above supports H1-H6. Some browsers support more heading levels. Note that not all browsers default to ALIGN=LEFT; many default to a centered alignment for headings. Valid alignments for headings are left, center, right. Also note that search engines may give words appearing in headings more importance in indexes, and may use the headings in a document to build a hierarchical outline.
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Constructor Summary | |
HeadingElement()
Deprecated. Constructs a HeadingElement that defaults to level H1. |
|
HeadingElement(HtmlElement val,
int num)
Deprecated. Constructs a HeadingElement with the specified HtmlElement set to the specified level. |
|
HeadingElement(java.lang.String val)
Deprecated. Constructs a HeadingElement with the specified string that defaults to level H1. |
|
HeadingElement(java.lang.String val,
int num)
Deprecated. Constructs a HeadingElement with the specified string set to the specified level. |
Method Summary | |
protected java.lang.String |
getHtmlCode()
Deprecated. |
int |
getLevel()
Deprecated. Gets the heading level of a HeadingElement. |
protected boolean |
printCR()
Deprecated. |
HeadingElement |
setAlign(java.lang.String align)
Deprecated. Sets the ALIGN attribute for a HeadingElement. |
HeadingElement |
setAlign(TextAlignType align)
Deprecated. Sets the ALIGN attribute for a HeadingElement. |
HeadingElement |
setLevel(int val)
Deprecated. Sets the heading level for a HeadingElement. |
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,
printBody,
printEndingTag,
setBooleanAttribute,
setBooleanAttribute,
setClass,
setDirection,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setId,
setLang,
setLocalVar,
setQuotedAttribute,
setStyle |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public HeadingElement()
public HeadingElement(java.lang.String val)
val
- Heading textpublic HeadingElement(java.lang.String val, int num)
val
- Heading textnum
- Heading levelpublic HeadingElement(HtmlElement val, int num)
val
- HtmlElementnum
- Heading levelMethod Detail |
protected java.lang.String getHtmlCode()
protected boolean printCR()
public HeadingElement setLevel(int val)
val
- Heading levelpublic HeadingElement setAlign(TextAlignType align)
align
- TextAlignType alignmentpublic HeadingElement setAlign(java.lang.String align)
align
- String valuepublic int getLevel()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |