public class Block extends Composite
Composite
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
write(Writer out)
Write the composite.
|
add, contents, nest, replace, reset, setNest, size, unnest
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
public Block(String tag)
tag
- The tag to use to open and close the block.public void write(Writer out) throws IOException
Composite
write
in class Composite
out
- Writer to write the element to.IOException
Copyright © 2013. All Rights Reserved.