|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.html.Element org.mortbay.html.Composite org.mortbay.html.Block
public 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.
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 |
Fields inherited from class org.mortbay.html.Composite |
---|
elements, nest |
Fields inherited from class org.mortbay.html.Element |
---|
ALIGN, attributeMap, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
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 | |
---|---|
void |
write(Writer out)
Write the composite. |
Methods inherited from class org.mortbay.html.Composite |
---|
add, contents, nest, replace, reset, setNest, size, unnest |
Methods inherited from class org.mortbay.html.Element |
---|
attribute, attribute, attribute, attributes, attributes, bgColor, bottom, center, color, cssClass, cssID, height, height, height, left, middle, right, setAttributesFrom, size, size, style, top, toString, width, width, width, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String Pre
public static final String Quote
public static final String Center
public static final String Listing
public static final String Plain
public static final String Xmp
public static final String Div
public static final String Left
public static final String Right
public static final String Bold
public static final String Italic
public static final String Span
Constructor Detail |
---|
public Block(String tag)
tag
- The tag to use to open and close the block.public Block(String tag, String attributes)
tag
- The tag to use to open and close the block.attributes
- String of attributes for opening tag.Method Detail |
---|
public void write(Writer out) throws IOException
Composite
write
in class Composite
out
- Writer to write the element to.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |