|
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.MultiPartElement | +--weblogic.html.SpanElement
A SpanElement, like a DivElement, offers a generic mechanism for adding structure to documents. The SPAN and DIV HTML elements are the only two HTML elements that do not add presentation to their enclosed content. By creating instances and classes of elements and applying style sheets, you can customize the presentation of a document. For more information on using a SpanElement, read the documentation on Grouping elements at W3C.
A SpanElement is an inline element, meaning that it does not introduce a visual break in the text. It cannot be used to group block-level elements like paragraphs; it can be used within a DivElement.
A DivElement is a block element, which customarily begins a new paragraph. It can be used to group other block-level elements, but can't be added to a ParagraphElement. Most browsers represent a DivElement with a line break before and after its contents.
DivElement
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Constructor Summary | |
SpanElement(java.lang.String styleclass)
Deprecated. Constructs a SpanElement with the specified class. |
|
SpanElement(java.lang.String styleclass,
java.lang.String idstr)
Deprecated. Constructs a SpanElement with the specified class and ID. |
Method Summary | |
SpanElement |
addElement(HtmlElement val)
Deprecated. Adds an HtmlElement to a SpanElement. |
SpanElement |
addElement(java.lang.String elem)
Deprecated. Adds a StringElement to a SpanElement. |
protected java.lang.String |
getHtmlCode()
Deprecated. |
protected boolean |
printCR()
Deprecated. |
Methods inherited from class weblogic.html.MultiPartElement |
addHeadMultiElement,
addMultiElement,
getMultiElementAt,
getNumElements,
printBody,
printBody,
printBody,
removeElement,
removeElementAt,
replaceElementAt,
replaceMultiElementAt,
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 SpanElement(java.lang.String styleclass, java.lang.String idstr)
styleclass
- Matches a style classidstr
- Identifies a grouping of types of SpanElementspublic SpanElement(java.lang.String styleclass)
styleclass
- Matches a style classMethod Detail |
protected java.lang.String getHtmlCode()
protected boolean printCR()
public SpanElement addElement(HtmlElement val)
val
- HtmlElementpublic SpanElement addElement(java.lang.String elem)
val
- StringElement
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |