org.mortbay.html

Class Block

public class Block extends Composite

HTML Block Composite. Block of predefined or arbitrary type. Block types are predefined for PRE, BLOCKQUOTE, CENTER, LISTING, PLAINTEXT, XMP, DIV (Left and Right) and SPAN.

See Also: Composite

Field Summary
static StringBold
Bold
static StringCenter
Center the block
static StringDiv
Basic Division
static StringItalic
Italic
static StringLeft
Left align
static StringListing
Code listing style
static StringPlain
Plain text
static StringPre
Preformatted text
static StringQuote
Quoted Text
static StringRight
Right align
static StringSpan
Span
static StringXmp
Old pre format - preserve line breaks
Constructor Summary
Block(String tag)
Construct a block using the passed string as the tag.
Block(String tag, String attributes)
Construct a block using the passed string as the tag.
Method Summary
voidwrite(Writer out)

Field Detail

Bold

public static final String Bold
Bold

Center

public static final String Center
Center the block

Div

public static final String Div
Basic Division

Italic

public static final String Italic
Italic

Left

public static final String Left
Left align

Listing

public static final String Listing
Code listing style

Plain

public static final String Plain
Plain text

Pre

public static final String Pre
Preformatted text

Quote

public static final String Quote
Quoted Text

Right

public static final String Right
Right align

Span

public static final String Span
Span

Xmp

public static final String Xmp
Old pre format - preserve line breaks

Constructor Detail

Block

public Block(String tag)
Construct a block using the passed string as the tag.

Parameters: tag The tag to use to open and close the block.

Block

public Block(String tag, String attributes)
Construct a block using the passed string as the tag.

Parameters: tag The tag to use to open and close the block. attributes String of attributes for opening tag.

Method Detail

write

public void write(Writer out)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.