BEA Systems, Inc.

WebLogic Server 5.1.0 API Reference

weblogic.html
Class SinglePartElement

java.lang.Object
  |
  +--weblogic.html.HtmlElement
        |
        +--weblogic.html.ElementWithAttributes
              |
              +--weblogic.html.SinglePartElement
Direct Known Subclasses:
AcronymElement, AddressElement, AnchorElement, AreaElement, BaseElement, BaseFontElement, BigElement, BlockquoteElement, BodyElement, BoldElement, BreakElement, ButtonElement, CenteredElement, CiteElement, CodeElement, ColElement, CommentElement, DefineTermElement, DefinitionItem, EmbedElement, EmphasisElement, FontElement, FrameElement, HeadingElement, HorizontalRuleElement, ImageElement, InputElement, IsIndexElement, ItalicElement, KeyboardElement, LegendElement, LinkHeadElement, ListItem, LiteralElement, MetaElement, MultiColElement, ObjectElement, OptionElement, ParagraphElement, ParamElement, QElement, SampleElement, ScriptElement, SmallElement, SpacerElement, StrikeElement, StrongElement, StyleElement, SubscriptElement, SuperscriptElement, TableCaptionElement, TableDataElement, TeletypeElement, TextAreaElement, TextFlowElement, TitleElement, UnderlineElement, VariableElement

public abstract class SinglePartElement
extends ElementWithAttributes

The SinglePartElement class is the parent class for all HtmlElements that have a single component. For instance, ListItems are derived from the SinglePartElement class, while ListElements are derived from the MultiPartElement class.

Author:
Copyright (c) 1995-97 by WebLogic, Inc. All Rights Reserved.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.
See Also:
MultiPartElement

Fields inherited from class weblogic.html.HtmlElement
codeset, useObsolete
 
Constructor Summary
SinglePartElement()
          Constructs a default SinglePartElement.
SinglePartElement(HtmlElement val)
          Constructs a SinglePartElement with the specified HtmlElement.
SinglePartElement(java.lang.String val)
          Constructs a SinglePartElement with the specified String.
 
Method Summary
 HtmlElement getElement()
          Gets a SinglePartElement as an HtmlElement.
protected  void printBody(java.io.OutputStream ostr)
           
protected  void printBody(java.io.OutputStream ostr, java.lang.String codeset)
           
protected  void printBody(java.io.PrintWriter pw)
           
 HtmlElement setElement(HtmlElement elem)
          Returns the specified HtmlElement as an HtmlElement.
 HtmlElement setElement(java.lang.String str)
          Returns the specified String as an HtmlElement.
 int widthAsLiteral()
          Returns the width of a SinglePartElement.
 
Methods inherited from class weblogic.html.ElementWithAttributes
addAttribute, addAttribute, escapeQuotes, getBooleanAttribute, getElementAttribute, getHtmlCode, getLocalVar, getQuotedAttribute, output, output, output, printBody, printCR, 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
 

Constructor Detail

SinglePartElement

public SinglePartElement()
Constructs a default SinglePartElement.

SinglePartElement

public SinglePartElement(HtmlElement val)
Constructs a SinglePartElement with the specified HtmlElement.

Parameters:
val - HtmlElement

SinglePartElement

public SinglePartElement(java.lang.String val)
Constructs a SinglePartElement with the specified String.

Parameters:
val - String
Method Detail

setElement

public HtmlElement setElement(java.lang.String str)
Returns the specified String as an HtmlElement.

Parameters:
str - String
Returns:
HtmlElement

setElement

public HtmlElement setElement(HtmlElement elem)
Returns the specified HtmlElement as an HtmlElement.

Parameters:
elem - HtmlElement
Returns:
HtmlElement

getElement

public HtmlElement getElement()
Gets a SinglePartElement as an HtmlElement.

Returns:
HtmlElement

widthAsLiteral

public int widthAsLiteral()
Returns the width of a SinglePartElement.

Returns:
Width in pixels
Overrides:
widthAsLiteral in class HtmlElement

printBody

protected void printBody(java.io.OutputStream ostr)
                  throws java.io.IOException

Overrides:
printBody in class ElementWithAttributes

printBody

protected void printBody(java.io.OutputStream ostr,
                         java.lang.String codeset)
                  throws java.io.IOException

Overrides:
printBody in class ElementWithAttributes

printBody

protected void printBody(java.io.PrintWriter pw)
                  throws java.io.IOException

Overrides:
printBody in class ElementWithAttributes

Documentation is available at
http://www.weblogic.com/docs51