|
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.BodyElement
The BodyElement class is used to set attributes for the body of an HtmlPage. Colors used as arguments for methods in this class can be the valid color names encapsulated in HtmlColor, or a java.awt.Color object, or a six-letter string that denotes the hex value of an RGB color preceded by the "#" symbol.
There is no public constructor for this class. Call the setAttribute() method in this class (after constructing an HtmlPage and calling the HtmlPage.getBodyElement() method) to set attributes. Add other HtmlElements to the body portion of an HtmlPage after calling HtmlPage.getBody() method with addElement().
HtmlPage.getBodyElement()
,
HtmlPage.getBody()
,
HtmlColor
Field Summary | |
static java.lang.String |
aLinkColor
Deprecated. Constant for ALINK tag in BODY element. |
static java.lang.String |
backgroundImg
Deprecated. Constant for BACKGROUND tag in BODY element. |
static java.lang.String |
bgColor
Deprecated. Constant for BGCOLOR tag in BODY element. |
static java.lang.String |
linkColor
Deprecated. Constant for LINK tag in BODY element. |
static java.lang.String |
onLoadScript
Deprecated. Constant for onLoad tag in BODY element for use with a ScriptElement. |
static java.lang.String |
onUnloadScript
Deprecated. Constant for onUnload tag in BODY element for use with a ScriptElement. |
static java.lang.String |
textColor
Deprecated. Constant for TEXT tag in BODY element. |
static java.lang.String |
vLinkColor
Deprecated. Constant for VLINK tag in BODY element. |
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Method Summary | |
HtmlContainer |
addElement(HtmlElement he)
Deprecated. Adds an element to the HtmlContainer of a BodyElement. |
HtmlContainer |
getContainer()
Deprecated. Returns the HtmlContainer that is bounded by the start and end tags of a BodyElement. |
protected java.lang.String |
getHtmlCode()
Deprecated. |
protected boolean |
printBody()
Deprecated. |
protected boolean |
printCR()
Deprecated. |
protected boolean |
printEndingTag()
Deprecated. |
BodyElement |
setAttribute(java.lang.String attrib,
java.awt.Color color)
Deprecated. Sets an attribute and its value as a java.awt.Color object, for those attributes that set colors. |
BodyElement |
setAttribute(java.lang.String attrib,
java.lang.String value)
Deprecated. Sets an attribute and its value of a BodyElement. |
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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static java.lang.String backgroundImg
public static java.lang.String bgColor
public static java.lang.String textColor
public static java.lang.String linkColor
public static java.lang.String aLinkColor
public static java.lang.String vLinkColor
public static java.lang.String onLoadScript
public static java.lang.String onUnloadScript
Method Detail |
public HtmlContainer getContainer()
public BodyElement setAttribute(java.lang.String attrib, java.lang.String value)
attrib
- Constant in this class or a valid HTML attribute
for the BODY elementvalue
- Value of the attributepublic BodyElement setAttribute(java.lang.String attrib, java.awt.Color color)
attrib
- Constant in this class or a valid HTML attribute
for the BODY elementcolor
- Color objectpublic HtmlContainer addElement(HtmlElement he)
protected java.lang.String getHtmlCode()
protected boolean printCR()
protected boolean printBody()
protected boolean printEndingTag()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |