public class ExtDecorator extends DefaultDecorator
| Constructor and Description |
|---|
ExtDecorator() |
| Modifier and Type | Method and Description |
|---|---|
ExtDecorator |
addHtmlAttribute(String name,
String value,
String... tags) |
ExtDecorator |
addStyleClass(String styleClass,
String... tags) |
void |
horizontalRuler(StringBuilder out)
Called when a horizontal ruler is encountered.
|
void |
openBlockquote(StringBuilder out)
Called when a blockquote is opened.
|
void |
openCodeBlock(StringBuilder out)
Called when a code block is opened.
|
void |
openCodeSpan(StringBuilder out)
Called when a code span is opened.
|
void |
openEmphasis(StringBuilder out)
Called when an emphasis span is opened.
|
void |
openHeadline(StringBuilder out,
int level)
Called when a headline is opened.
|
void |
openImage(StringBuilder out)
Called when an image is opened.
|
void |
openLink(StringBuilder out)
Called when a link is opened.
|
void |
openListItem(StringBuilder out)
Called when a list item is opened.
|
void |
openOrderedList(StringBuilder out)
Called when an ordered list is opened.
|
void |
openParagraph(StringBuilder out)
Called when a paragraph is opened.
|
void |
openStrike(StringBuilder out)
Called when a strike span is opened.
|
void |
openStrong(StringBuilder out)
Called when a strong span is opened.
|
void |
openSuper(StringBuilder out)
Called when a superscript span is opened.
|
void |
openUnorderedList(StringBuilder out)
Called when an unordered list is opened.
|
ExtDecorator |
useCompactStyle() |
closeBlockquote, closeCodeBlock, closeCodeSpan, closeEmphasis, closeHeadline, closeListItem, closeOrderedList, closeParagraph, closeStrike, closeStrong, closeSuper, closeUnorderedListpublic ExtDecorator addHtmlAttribute(String name, String value, String... tags)
public ExtDecorator addStyleClass(String styleClass, String... tags)
public ExtDecorator useCompactStyle()
public void openParagraph(StringBuilder out)
DecoratorDefault implementation is:
out.append("<p>");
openParagraph in interface DecoratoropenParagraph in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openParagraph(StringBuilder)public void openBlockquote(StringBuilder out)
Decorator
out.append("<blockquote>");
openBlockquote in interface DecoratoropenBlockquote in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openBlockquote(StringBuilder)public void openCodeBlock(StringBuilder out)
DecoratorDefault implementation is:
out.append("<pre><code>");
openCodeBlock in interface DecoratoropenCodeBlock in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openCodeBlock(StringBuilder)public void openCodeSpan(StringBuilder out)
DecoratorDefault implementation is:
out.append("<code>");
openCodeSpan in interface DecoratoropenCodeSpan in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openCodeSpan(StringBuilder)public void openHeadline(StringBuilder out, int level)
DecoratorNote: Don't close the HTML tag!
Default implementation is:
out.append("<h");
out.append(level);
openHeadline in interface DecoratoropenHeadline in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openHeadline(StringBuilder,
int)public void openStrong(StringBuilder out)
DecoratorDefault implementation is:
out.append("<strong>");
openStrong in interface DecoratoropenStrong in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openStrong(StringBuilder)public void openStrike(StringBuilder out)
DecoratorDefault implementation is:
out.append("<s>");
openStrike in interface DecoratoropenStrike in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openStrong(StringBuilder)public void openEmphasis(StringBuilder out)
DecoratorDefault implementation is:
out.append("<em>");
openEmphasis in interface DecoratoropenEmphasis in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openEmphasis(StringBuilder)public void openSuper(StringBuilder out)
DecoratorDefault implementation is:
out.append("<sup>");
openSuper in interface DecoratoropenSuper in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openSuper(StringBuilder)public void openOrderedList(StringBuilder out)
DecoratorDefault implementation is:
out.append("<ol>\n");
openOrderedList in interface DecoratoropenOrderedList in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openOrderedList(StringBuilder)public void openUnorderedList(StringBuilder out)
DecoratorDefault implementation is:
out.append("<ul>\n");
openUnorderedList in interface DecoratoropenUnorderedList in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openUnorderedList(StringBuilder)public void openListItem(StringBuilder out)
DecoratorNote: Don't close the HTML tag!
Default implementation is:
out.append("<li");
openListItem in interface DecoratoropenListItem in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openListItem(StringBuilder)public void horizontalRuler(StringBuilder out)
DecoratorDefault implementation is:
out.append("<hr />\n");
horizontalRuler in interface DecoratorhorizontalRuler in class DefaultDecoratorout - The StringBuilder to write to.Decorator.horizontalRuler(StringBuilder)public void openLink(StringBuilder out)
DecoratorNote: Don't close the HTML tag!
Default implementation is:
out.append("<a");
openLink in interface DecoratoropenLink in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openLink(StringBuilder)public void openImage(StringBuilder out)
DecoratorNote: Don't close the HTML tag!
Default implementation is:
out.append("<img");
openImage in interface DecoratoropenImage in class DefaultDecoratorout - The StringBuilder to write to.Decorator.openImage(StringBuilder)Copyright © 2013. All Rights Reserved.