org.mortbay.html
Class Block
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.
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
|
ALIGN , BGCOLOR , BOTTOM , CENTER , CLASS , COLOR , HEIGHT , ID , LEFT , MIDDLE , RIGHT , SIZE , STYLE , TOP , VALIGN , WIDTH , attributeMap , noAttributes |
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.
|
attribute , attribute , attribute , attributes , attributes , bgColor , bottom , center , color , cssClass , cssID , height , height , height , left , middle , right , setAttributesFrom , size , size , size , style , toString , top , width , width , width , write , write , write |
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
Block
public Block(String tag)
Construct a block using the passed string as the tag.
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.
tag
- The tag to use to open and close the block.attributes
- String of attributes for opening tag.
write
public void write(Writer out)
throws IOException
- write in interface Composite
Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.