|
||||||||||
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
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 java.lang.String |
Bold
Bold |
static java.lang.String |
Center
Center the block |
static java.lang.String |
Div
Basic Division |
static java.lang.String |
Italic
Italic |
static java.lang.String |
Left
Left align |
static java.lang.String |
Listing
Code listing style |
static java.lang.String |
Plain
Plain text |
static java.lang.String |
Pre
Preformatted text |
static java.lang.String |
Quote
Quoted Text |
static java.lang.String |
Right
Right align |
static java.lang.String |
Span
Span |
static java.lang.String |
Xmp
Old pre format - preserve line breaks |
Fields inherited from class org.mortbay.html.Element |
ALIGN, BGCOLOR, BOTTOM, CENTER, CLASS, COLOR, HEIGHT, ID, LEFT, MIDDLE, noAttributes, RIGHT, SIZE, STYLE, TOP, VALIGN, WIDTH |
Constructor Summary | |
Block(java.lang.String tag)
Construct a block using the passed string as the tag. |
|
Block(java.lang.String tag,
java.lang.String attributes)
Construct a block using the passed string as the tag. |
Method Summary | |
void |
write(java.io.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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String Pre
public static final java.lang.String Quote
public static final java.lang.String Center
public static final java.lang.String Listing
public static final java.lang.String Plain
public static final java.lang.String Xmp
public static final java.lang.String Div
public static final java.lang.String Left
public static final java.lang.String Right
public static final java.lang.String Bold
public static final java.lang.String Italic
public static final java.lang.String Span
Constructor Detail |
public Block(java.lang.String tag)
tag
- The tag to use to open and close the block.public Block(java.lang.String tag, java.lang.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(java.io.Writer out) throws java.io.IOException
Composite
write
in class Composite
out
- Writer to write the element to.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |