weblogic.html
Class AcronymElement
java.lang.Object
|
+--weblogic.html.HtmlElement
|
+--weblogic.html.ElementWithAttributes
|
+--weblogic.html.SinglePartElement
|
+--weblogic.html.AcronymElement
- public class AcronymElement
- extends SinglePartElement
An AcronymElement is used to mark a sequence of characters
that compose an acronym. The content of an AcronymElement
specifies the acronym itself, and the title attribute is
used to provide the phrase to which the acronym expands.
This element is new in HTML 4.0 and may not display properly
in all browsers.
Other attributes that can be set for this element from
methods in its superclass are: id, class, lang, style,
onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, and onkeyup.
- Author:
- Copyright (c) 1997, WebLogic, Inc. All Rights Reserved.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.
Constructor Summary
|
AcronymElement(java.lang.String acro,
java.lang.String phrase)
Constructs an AcronymElement with the specified string
and sets the title attribute. |
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 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 |
AcronymElement
public AcronymElement(java.lang.String acro,
java.lang.String phrase)
- Constructs an AcronymElement with the specified string
and sets the title attribute.
- Parameters:
acro
- String that is the acronymphrase
- String that expands the acronym
getHtmlCode
protected java.lang.String getHtmlCode()
- Overrides:
- getHtmlCode in class ElementWithAttributes
printCR
protected boolean printCR()
- Overrides:
- printCR in class ElementWithAttributes
setTitle
public AcronymElement setTitle(java.lang.String phrase)
- Sets the title
and sets the title attribute.
- Parameters:
phrase
- String that expands the acronym- Returns:
- HtmlElement that the term defined