Class HtmlBuilder
java.lang.Object
com.vladsch.flexmark.util.html.HtmlAppendableBase<HtmlBuilder>
com.vladsch.flexmark.util.html.ui.HtmlBuilder
- All Implemented Interfaces:
HtmlAppendable
,LineAppendable
,Appendable
,Iterable<LineInfo>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vladsch.flexmark.util.sequence.LineAppendable
LineAppendable.Options
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addColorStylerClass
(Class clazz) append
(boolean b) @NotNull HtmlBuilder
append
(char c) append
(char[] str) append
(char[] str, int offset, int len) append
(double d) append
(float f) append
(int i) append
(long l) @NotNull HtmlBuilder
append
(@NotNull CharSequence s) @NotNull HtmlBuilder
append
(@NotNull CharSequence s, int start, int end) append
(StringBuffer sb) @NotNull HtmlBuilder
@NotNull HtmlBuilder
attr
(@NotNull Attributes attributes) @NotNull HtmlBuilder
attr
(@NotNull CharSequence name, @Nullable CharSequence value) static Attribute
getAttribute
(Object item) static HtmlStyler
getHtmlStyler
(Object item) span()
span
(CharSequence text) style
(CharSequence value) 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 Details
-
stylerMap
-
-
Constructor Details
-
HtmlBuilder
public HtmlBuilder() -
HtmlBuilder
public HtmlBuilder(int indentSize, int formatOptions)
-
-
Method Details
-
closeAllTags
-
toFinalizedString
-
attr
-
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
-
attr
- Specified by:
attr
in interfaceHtmlAppendable
- Overrides:
attr
in classHtmlAppendableBase<HtmlBuilder>
-
attr
- Specified by:
attr
in interfaceHtmlAppendable
- Overrides:
attr
in classHtmlAppendableBase<HtmlBuilder>
-
span
-
span
-
span
-
span
-
spanLine
-
closeSpan
-
addColorStylerClass
-
getHtmlStyler
-
getAttribute
-
append
-
append
-
append
-
append
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfaceLineAppendable
- Overrides:
append
in classHtmlAppendableBase<HtmlBuilder>
-
append
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfaceLineAppendable
- Overrides:
append
in classHtmlAppendableBase<HtmlBuilder>
-
append
-
append
-
append
-
append
- Specified by:
append
in interfaceAppendable
- Specified by:
append
in interfaceLineAppendable
- Overrides:
append
in classHtmlAppendableBase<HtmlBuilder>
-
append
-
append
-
append
-
append
-