BEA Systems, Inc.

WebLogic Server 5.1.0 API Reference

weblogic.html
Class MarkupElement

java.lang.Object
  |
  +--weblogic.html.HtmlElement
        |
        +--weblogic.html.MarkupElement
Direct Known Subclasses:
AlignType, AnchorType, BorderstyleType, ClearType, FieldType, FrameType, MediaType, MimeType, RulesType, ScrollType, SpacerType, TextAlignType, WindowName, WrapType

public class MarkupElement
extends HtmlElement

This class encapsulates certain HTML markup elements for an htmlKona canvas. MarkupElements include designations for page divisions (head, body, title, etc.), font attributes (bold, italic, center), and other page markings.

The String variables in this class are for internal use only. Use a MarkupElement with any of the addElement() methods in other classes.

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

Field Summary
static MarkupElement BeginAddress
          Use with an addElement() method.
static java.lang.String BeginAddressStr
          Internal use only.
static MarkupElement BeginBlockquote
          Use with an addElement() method.
static java.lang.String BeginBlockquoteStr
          Internal use only.
static MarkupElement BeginBody
          Use with an addElement() method.
static java.lang.String BeginBodyStr
          Internal use only.
static MarkupElement BeginBold
          Use with an addElement() method.
static java.lang.String BeginBoldStr
          Internal use only.
static MarkupElement BeginCenter
          Use with an addElement() method.
static java.lang.String BeginCenterStr
          Internal use only.
static MarkupElement BeginComment
          Use with an addElement() method.
static java.lang.String BeginCommentStr
          Internal use only.
static MarkupElement BeginDiv
          Use with an addElement() method.
static java.lang.String BeginDivStr
          Internal use only.
static java.lang.String BeginHeadStr
          Internal use only.
static MarkupElement BeginHtml
          Use with an addElement() method.
static java.lang.String BeginHtmlStr
          Internal use only.
static MarkupElement BeginItalic
          Use with an addElement() method.
static java.lang.String BeginItalicStr
          Internal use only.
static MarkupElement BeginLiteral
          Use with an addElement() method.
static java.lang.String BeginLiteralStr
          Internal use only.
static MarkupElement BeginParagraph
          Use with an addElement() method.
static java.lang.String BeginParagraphStr
          Internal use only.
static java.lang.String BeginScriptStr
          Internal use only.
static MarkupElement BeginTitle
          Use with an addElement() method.
static java.lang.String BeginTitleStr
          Internal use only.
static MarkupElement Break
          Use with an addElement() method.
static java.lang.String BreakStr
          Internal use only.
protected  java.lang.String contents
           
static MarkupElement CR
          Use with an addElement() method.
static java.lang.String CRStr
          Internal use only.
static MarkupElement EndAddress
          Use with an addElement() method.
static java.lang.String EndAddressStr
          Internal use only.
static MarkupElement EndBlockquote
          Use with an addElement() method.
static java.lang.String EndBlockquoteStr
          Internal use only.
static MarkupElement EndBody
          Use with an addElement() method.
static java.lang.String EndBodyStr
          Internal use only.
static MarkupElement EndBold
          Use with an addElement() method.
static java.lang.String EndBoldStr
          Internal use only.
static MarkupElement EndCenter
          Use with an addElement() method.
static java.lang.String EndCenterStr
          Internal use only.
static MarkupElement EndComment
          Use with an addElement() method.
static java.lang.String EndCommentStr
          Internal use only.
static MarkupElement EndDiv
          Use with an addElement() method.
static java.lang.String EndDivStr
          Internal use only.
static MarkupElement EndFont
          Use with an addElement() method with BeginFont().
static java.lang.String EndFontStr
          Internal use only.
static java.lang.String EndHeadStr
          Internal use only.
static MarkupElement EndHtml
          Use with an addElement() method.
static java.lang.String EndHtmlStr
          Internal use only.
static MarkupElement EndItalic
          Use with an addElement() method.
static java.lang.String EndItalicStr
          Internal use only.
static MarkupElement EndLiteral
          Use with an addElement() method.
static java.lang.String EndLiteralStr
          Internal use only.
static MarkupElement EndParagraph
          Use with an addElement() method.
static java.lang.String EndParagraphStr
          Internal use only.
static java.lang.String EndScriptStr
          Internal use only.
static MarkupElement EndTitle
          Use with an addElement() method.
static java.lang.String EndTitleStr
          Internal use only.
static MarkupElement HorizontalLine
          Use with an addElement() method.
static java.lang.String HorizontalLineStr
          Internal use only.
static MarkupElement HorizontalRule
          Use with an addElement() method.
static MarkupElement NoBreak
          Use with an addElement() method.
static java.lang.String NoBreakStr
          Internal use only.
static MarkupElement WordBreak
          Use with an addElement() method.
static java.lang.String WordBreakStr
          Internal use only.
 
Fields inherited from class weblogic.html.HtmlElement
codeset, useObsolete
 
Constructor Summary
MarkupElement(java.lang.String val)
           
 
Method Summary
static MarkupElement BeginFont(int val)
          Increases or decreases the font size.
static MarkupElement BeginFontFace(java.lang.String face)
          Sets a font face.
static MarkupElement BeginFontSize(int val)
          Sets the font size to the specified integer.
static MarkupElement BeginHeader(int val)
          Sets a heading size.
static MarkupElement EndHeader(int val)
          Ends a heading container.
 void output(java.io.OutputStream out)
           
 void output(java.io.OutputStream out, java.lang.String codeset)
           
 void output(java.io.PrintWriter pw)
           
 MarkupElement setContents(java.lang.String val)
           
 
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, widthAsLiteral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BeginAddressStr

public static java.lang.String BeginAddressStr
Internal use only.

EndAddressStr

public static java.lang.String EndAddressStr
Internal use only.

BeginBlockquoteStr

public static java.lang.String BeginBlockquoteStr
Internal use only.

EndBlockquoteStr

public static java.lang.String EndBlockquoteStr
Internal use only.

BeginBodyStr

public static java.lang.String BeginBodyStr
Internal use only.

EndBodyStr

public static java.lang.String EndBodyStr
Internal use only.

BeginCenterStr

public static java.lang.String BeginCenterStr
Internal use only.

EndCenterStr

public static java.lang.String EndCenterStr
Internal use only.

BeginCommentStr

public static java.lang.String BeginCommentStr
Internal use only.

EndCommentStr

public static java.lang.String EndCommentStr
Internal use only.

BeginDivStr

public static java.lang.String BeginDivStr
Internal use only.

EndDivStr

public static java.lang.String EndDivStr
Internal use only.

BeginHeadStr

public static java.lang.String BeginHeadStr
Internal use only.

EndHeadStr

public static java.lang.String EndHeadStr
Internal use only.

BeginHtmlStr

public static java.lang.String BeginHtmlStr
Internal use only.

EndHtmlStr

public static java.lang.String EndHtmlStr
Internal use only.

BeginScriptStr

public static java.lang.String BeginScriptStr
Internal use only.

EndScriptStr

public static java.lang.String EndScriptStr
Internal use only.

BeginTitleStr

public static java.lang.String BeginTitleStr
Internal use only.

EndTitleStr

public static java.lang.String EndTitleStr
Internal use only.

BeginBoldStr

public static java.lang.String BeginBoldStr
Internal use only.

EndBoldStr

public static java.lang.String EndBoldStr
Internal use only.

BeginItalicStr

public static java.lang.String BeginItalicStr
Internal use only.

EndItalicStr

public static java.lang.String EndItalicStr
Internal use only.

BeginParagraphStr

public static java.lang.String BeginParagraphStr
Internal use only.

EndParagraphStr

public static java.lang.String EndParagraphStr
Internal use only.

BeginLiteralStr

public static java.lang.String BeginLiteralStr
Internal use only.

EndLiteralStr

public static java.lang.String EndLiteralStr
Internal use only.

EndFontStr

public static java.lang.String EndFontStr
Internal use only.

BreakStr

public static java.lang.String BreakStr
Internal use only.

CRStr

public static java.lang.String CRStr
Internal use only.

HorizontalLineStr

public static java.lang.String HorizontalLineStr
Internal use only.

NoBreakStr

public static java.lang.String NoBreakStr
Internal use only.

WordBreakStr

public static java.lang.String WordBreakStr
Internal use only.

Break

public static MarkupElement Break
Use with an addElement() method.

CR

public static MarkupElement CR
Use with an addElement() method.

HorizontalLine

public static MarkupElement HorizontalLine
Use with an addElement() method.

HorizontalRule

public static MarkupElement HorizontalRule
Use with an addElement() method.

NoBreak

public static MarkupElement NoBreak
Use with an addElement() method.

WordBreak

public static MarkupElement WordBreak
Use with an addElement() method.

BeginAddress

public static MarkupElement BeginAddress
Use with an addElement() method.

EndAddress

public static MarkupElement EndAddress
Use with an addElement() method.

BeginBlockquote

public static MarkupElement BeginBlockquote
Use with an addElement() method.

EndBlockquote

public static MarkupElement EndBlockquote
Use with an addElement() method.

BeginBold

public static MarkupElement BeginBold
Use with an addElement() method.

EndBold

public static MarkupElement EndBold
Use with an addElement() method.

BeginBody

public static MarkupElement BeginBody
Use with an addElement() method.

EndBody

public static MarkupElement EndBody
Use with an addElement() method.

BeginCenter

public static MarkupElement BeginCenter
Use with an addElement() method.

EndCenter

public static MarkupElement EndCenter
Use with an addElement() method.

BeginComment

public static MarkupElement BeginComment
Use with an addElement() method.

EndComment

public static MarkupElement EndComment
Use with an addElement() method.

BeginDiv

public static MarkupElement BeginDiv
Use with an addElement() method.

EndDiv

public static MarkupElement EndDiv
Use with an addElement() method.

BeginHtml

public static MarkupElement BeginHtml
Use with an addElement() method.

EndHtml

public static MarkupElement EndHtml
Use with an addElement() method.

BeginItalic

public static MarkupElement BeginItalic
Use with an addElement() method.

EndItalic

public static MarkupElement EndItalic
Use with an addElement() method.

BeginLiteral

public static MarkupElement BeginLiteral
Use with an addElement() method.

EndLiteral

public static MarkupElement EndLiteral
Use with an addElement() method.

BeginParagraph

public static MarkupElement BeginParagraph
Use with an addElement() method.

EndParagraph

public static MarkupElement EndParagraph
Use with an addElement() method.

BeginTitle

public static MarkupElement BeginTitle
Use with an addElement() method.

EndTitle

public static MarkupElement EndTitle
Use with an addElement() method.

EndFont

public static MarkupElement EndFont
Use with an addElement() method with BeginFont().

contents

protected java.lang.String contents
Constructor Detail

MarkupElement

public MarkupElement(java.lang.String val)
Method Detail

BeginFont

public static MarkupElement BeginFont(int val)
Increases or decreases the font size. Use with a negative integer to decrease the font size. Obsolete in 2.1. Prefer a method in the FontElement class.

Parameters:
val - Font size with "+" or "-"
See Also:
FontElement

BeginFontSize

public static MarkupElement BeginFontSize(int val)
Sets the font size to the specified integer. Font size 3 is the default. Obsolete in 2.1. Prefer a method in the FontElement class.

Parameters:
val - Font size in points
See Also:
FontElement

BeginFontFace

public static MarkupElement BeginFontFace(java.lang.String face)
Sets a font face. Use with EndFont to set a font face for a container with several HtmlElements.

Parameters:
face - Name of a font face in double quotes

BeginHeader

public static MarkupElement BeginHeader(int val)
Sets a heading size. Obsolete in 2.1. Prefer a method in the HeadingElement class.

Parameters:
val - Heading size (1-6)

EndHeader

public static MarkupElement EndHeader(int val)
Ends a heading container. Closes a BeginHeader(int val) Markup Element. Obsolete in 2.1. Prefer a method in the HeadingElement class.

Parameters:
val - Heading size (1-6)

output

public void output(java.io.OutputStream out)
            throws java.io.IOException

Overrides:
output in class HtmlElement

output

public void output(java.io.OutputStream out,
                   java.lang.String codeset)
            throws java.io.IOException

Overrides:
output in class HtmlElement

output

public void output(java.io.PrintWriter pw)
            throws java.io.IOException

Overrides:
output in class HtmlElement

setContents

public MarkupElement setContents(java.lang.String val)

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