@OpenApiAll public class HtmlTextBuilder<T extends HtmlTextBuilder> extends AbstractTextBuilder<T>
Constructor and Description |
---|
HtmlTextBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
appendWithNoWrap(java.lang.CharSequence text)
Append text from the given builder.
|
static HtmlTextBuilder |
createHtmlTextBuilderPreferLightHtml()
Creates and instance of builder which outputs light html if full html was not appended.
|
protected void |
preferLightHtml(HtmlTextBuilder builder) |
T |
prependWithNoWrap(java.lang.CharSequence plainText)
Add text to the beginning.
|
java.lang.String |
replaceSpaceToNbsp(java.lang.String text) |
protected java.lang.String |
toAppendableText(java.lang.String text) |
java.lang.String |
toPlainText() |
java.lang.String |
toString() |
append, appendColor, appendToText, isTextAdded, prepend, prependColor, prependToText, replaceText, setText, textLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, compress, isColorSupported, isPlainTextEmpty, prepend, setColor, setText
protected java.lang.String toAppendableText(java.lang.String text)
toAppendableText
in class AbstractTextBuilder<T extends HtmlTextBuilder>
public T prependWithNoWrap(java.lang.CharSequence plainText)
TextBuilder
plainText
- text to prependpublic T appendWithNoWrap(java.lang.CharSequence text)
TextBuilder
text
- text to prependpublic java.lang.String replaceSpaceToNbsp(java.lang.String text)
public java.lang.String toPlainText()
public java.lang.String toString()
toString
in interface TextBuilder<T extends HtmlTextBuilder>
toString
in class AbstractTextBuilder<T extends HtmlTextBuilder>
public static HtmlTextBuilder createHtmlTextBuilderPreferLightHtml()
protected void preferLightHtml(HtmlTextBuilder builder)