BEA Systems, Inc.

WebLogic Server 5.1.0 API Reference

weblogic.html
Class BreakElement

java.lang.Object
  |
  +--weblogic.html.HtmlElement
        |
        +--weblogic.html.ElementWithAttributes
              |
              +--weblogic.html.SinglePartElement
                    |
                    +--weblogic.html.BreakElement

public class BreakElement
extends SinglePartElement

This class extends the functionality of the convenient MarkupElement.Break. Netscape allows setting an attribute to clear after a break, which is supported here.

Version:
2.1
Author:
Copyright (c) 1996 by WebLogic, Inc.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.

Fields inherited from class weblogic.html.HtmlElement
codeset, useObsolete
 
Constructor Summary
BreakElement()
          Constructs a BreakElement.
 
Method Summary
protected  java.lang.String getHtmlCode()
           
protected  boolean printCR()
           
protected  boolean printEndingTag()
           
 BreakElement setClear(ClearType clear)
          Sets the CLEAR attribute for a BreakElement.
 
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, 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

BreakElement

public BreakElement()
Constructs a BreakElement.
Method Detail

getHtmlCode

protected java.lang.String getHtmlCode()

Overrides:
getHtmlCode in class ElementWithAttributes

printCR

protected boolean printCR()

Overrides:
printCR in class ElementWithAttributes

printEndingTag

protected boolean printEndingTag()

Overrides:
printEndingTag in class ElementWithAttributes

setClear

public BreakElement setClear(ClearType clear)
Sets the CLEAR attribute for a BreakElement. Netscape browsers insert a line break and move down vertically until there is a clear margin (that is, no floating images) when the CLEAR attribute is set. Use an ClearType object as an argument.

Parameters:
align - ClearType (left, right, all)
Returns:
BreakElement()

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