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 String | Bold Bold |
static String | Center Center the block |
static String | Div Basic Division |
static String | Italic Italic |
static String | Left Left align |
static String | Listing Code listing style |
static String | Plain Plain text |
static String | Pre Preformatted text |
static String | Quote Quoted Text |
static String | Right Right align |
static String | Span Span |
static String | Xmp 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. |
public static final String Bold
Bold
public static final String Center
Center the block
public static final String Div
Basic Division
public static final String Italic
Italic
public static final String Left
Left align
public static final String Listing
Code listing style
public static final String Plain
Plain text
public static final String Pre
Preformatted text
public static final String Quote
Quoted Text
public static final String Right
Right align
public static final String Span
Span
public static final String Xmp
Old pre format - preserve line breaks
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.
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.
public void write(Writer out)
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.