Class HtmlBuilder
- java.lang.Object
-
- com.vladsch.flexmark.util.html.HtmlAppendableBase<HtmlBuilder>
-
- com.vladsch.flexmark.util.html.ui.HtmlBuilder
-
- All Implemented Interfaces:
HtmlAppendable
,com.vladsch.flexmark.util.sequence.LineAppendable
,Appendable
,Iterable<com.vladsch.flexmark.util.sequence.LineInfo>
public class HtmlBuilder extends HtmlAppendableBase<HtmlBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static HashMap<Class,HtmlStyler>
stylerMap
-
Fields inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
ALLOW_LEADING_EOL, ALLOW_LEADING_WHITESPACE, COLLAPSE_WHITESPACE, CONVERT_TABS, F_COLLAPSE_WHITESPACE, F_CONVERT_TABS, F_FORMAT_ALL, F_PASS_THROUGH, F_PREFIX_PRE_FORMATTED, F_TRIM_LEADING_EOL, F_TRIM_LEADING_WHITESPACE, F_TRIM_TRAILING_WHITESPACE, F_WHITESPACE_REMOVAL, FORMAT_ALL, O_COLLAPSE_WHITESPACE, O_CONVERT_TABS, O_FORMAT_ALL, O_PASS_THROUGH, O_PREFIX_PRE_FORMATTED, O_TRIM_LEADING_EOL, O_TRIM_LEADING_WHITESPACE, O_TRIM_TRAILING_WHITESPACE, PASS_THROUGH, PREFIX_PRE_FORMATTED, TRIM_LEADING_WHITESPACE, TRIM_TRAILING_WHITESPACE
-
-
Constructor Summary
Constructors Constructor Description HtmlBuilder()
HtmlBuilder(int indentSize, int formatOptions)
-
Method Summary
-
Methods inherited from class com.vladsch.flexmark.util.html.HtmlAppendableBase
addIndentOnFirstEOL, addPrefix, addPrefix, append, append, appendTo, blankLine, blankLine, blankLineIf, changeOptions, closePre, closePreFormatted, closeTag, column, endsWithEOL, getAfterEolPrefixDelta, getAttributes, getBeforeEolPrefix, getBuilder, getEmptyAppendable, getIndentPrefix, getLine, getLineCount, getLineCountWithPending, getLineInfo, getLines, getLinesInfo, getOpenTags, getOpenTagsAfterLast, getOpenTagText, getOptions, getOptionSet, getPendingEOL, getPendingSpace, getPrefix, getTrailingBlankLines, indent, inPre, insertLine, isPendingSpace, isPreFormatted, isSuppressCloseTagLine, isSuppressOpenTagLine, iterator, line, lineIf, lineOnFirstText, lineWithTrailingSpaces, offset, offsetWithPending, openPre, openPreFormatted, popOptions, popPrefix, popPrefix, popTag, pushOptions, pushPrefix, pushTag, raw, raw, rawIndentedPre, rawPre, removeExtraBlankLines, removeIndentOnFirstEOL, removeLines, setAttributes, setIndentPrefix, setLine, setOptions, setPrefix, setPrefix, setPrefixLength, setSuppressCloseTagLine, setSuppressOpenTagLine, tag, tag, tag, tag, tagClosed, tagIndent, tagLine, tagLine, tagLine, tagLineIndent, tagOpened, tagVoid, tagVoidLine, text, toSequence, toString, toString, unIndent, unIndentNoEol, withAttr, withCondIndent, withCondLineOnChildText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
addOptions, append, append, appendAll, appendTo, appendTo, appendTo, appendTo, appendToSilently, appendToSilently, appendToSilently, appendToSilently, clearLineOnFirstText, copyAppendable, copyAppendable, copyAppendable, copyAppendable, copyAppendable, get, getLineContent, getLinePrefix, getLines, getLines, getLines, getLines, getLinesInfo, getLinesInfo, getTrailingBlankLines, isEmpty, isNotEmpty, noPreserveSpaces, noTrimLeading, preserveSpaces, removeExtraBlankLines, removeOptions, setLineOnFirstText, setOptions, setOptions, toSequence, toSequence, toSequence, toSequence, toString, toString, toString, toString, trimLeading
-
-
-
-
Field Detail
-
stylerMap
public static final HashMap<Class,HtmlStyler> stylerMap
-
-
Method Detail
-
closeAllTags
public HtmlBuilder closeAllTags()
-
toFinalizedString
public String toFinalizedString()
-
attr
public HtmlBuilder attr(Object... convertible)
-
attr
@NotNull public @NotNull HtmlBuilder attr(@NotNull @NotNull CharSequence name, @Nullable @Nullable CharSequence value)
- Specified by:
attr
in interfaceHtmlAppendable
- Overrides:
attr
in classHtmlAppendableBase<HtmlBuilder>
-
style
public HtmlBuilder style(CharSequence value)
-
attr
@NotNull public @NotNull HtmlBuilder attr(@NotNull @NotNull Attribute... attribute)
- Specified by:
attr
in interfaceHtmlAppendable
- Overrides:
attr
in classHtmlAppendableBase<HtmlBuilder>
-
attr
@NotNull public @NotNull HtmlBuilder attr(@NotNull @NotNull Attributes attributes)
- Specified by:
attr
in interfaceHtmlAppendable
- Overrides:
attr
in classHtmlAppendableBase<HtmlBuilder>
-
span
public HtmlBuilder span()
-
span
public HtmlBuilder span(CharSequence text)
-
span
public HtmlBuilder span(boolean withLine, Runnable runnable)
-
span
public HtmlBuilder span(Runnable runnable)
-
spanLine
public HtmlBuilder spanLine(Runnable runnable)
-
closeSpan
public HtmlBuilder closeSpan()
-
addColorStylerClass
public static void addColorStylerClass(Class clazz)
-
getHtmlStyler
public static HtmlStyler getHtmlStyler(Object item)
-
append
public HtmlBuilder append(Object obj)
-
append
public HtmlBuilder append(String str)
-
append
public HtmlBuilder append(StringBuffer sb)
-
append
@NotNull public @NotNull HtmlBuilder append(@NotNull @NotNull CharSequence s)
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfacecom.vladsch.flexmark.util.sequence.LineAppendable
- Overrides:
append
in classHtmlAppendableBase<HtmlBuilder>
-
append
@NotNull public @NotNull HtmlBuilder append(@NotNull @NotNull CharSequence s, int start, int end)
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfacecom.vladsch.flexmark.util.sequence.LineAppendable
- Overrides:
append
in classHtmlAppendableBase<HtmlBuilder>
-
append
public HtmlBuilder append(char[] str)
-
append
public HtmlBuilder append(char[] str, int offset, int len)
-
append
public HtmlBuilder append(boolean b)
-
append
@NotNull public @NotNull HtmlBuilder append(char c)
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfacecom.vladsch.flexmark.util.sequence.LineAppendable
- Overrides:
append
in classHtmlAppendableBase<HtmlBuilder>
-
append
public HtmlBuilder append(int i)
-
append
public HtmlBuilder append(long l)
-
append
public HtmlBuilder append(float f)
-
append
public HtmlBuilder append(double d)
-
-