Package com.nomagic.text.builders
Class PlainOrLightHtmlTextBuilder<T extends PlainOrLightHtmlTextBuilder>
java.lang.Object
com.nomagic.text.builders.AbstractTextBuilder<T>
com.nomagic.text.builders.PlainOrLightHtmlTextBuilder<T>
- All Implemented Interfaces:
TextBuilder<T>
@OpenApiAll
public class PlainOrLightHtmlTextBuilder<T extends PlainOrLightHtmlTextBuilder>
extends AbstractTextBuilder<T>
Builder used for plain or light html text building. Colored fragments are not supported.
Output text format depends on input text format - if at least one light html fragment added, result will be light html, otherwise result will be plain text.
Note - full html and rich text fragments will be converted to a light html.
-
Constructor Summary
-
Method Summary
Methods inherited from class com.nomagic.text.builders.AbstractTextBuilder
append, appendColor, appendToText, isTextAdded, prepend, prependColor, prependToText, replaceText, setText, textLength
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nomagic.text.builders.TextBuilder
append, appendWithNoWrap, appendWithSpace, appendWithSpace, compress, isColorSupported, isPlainTextEmpty, prepend, prependWithNoWrap, setColor, setText
-
Constructor Details
-
PlainOrLightHtmlTextBuilder
public PlainOrLightHtmlTextBuilder()
-
-
Method Details
-
toAppendableText
- Overrides:
toAppendableText
in classAbstractTextBuilder<T extends PlainOrLightHtmlTextBuilder>
-
toString
- Specified by:
toString
in interfaceTextBuilder<T extends PlainOrLightHtmlTextBuilder>
- Overrides:
toString
in classAbstractTextBuilder<T extends PlainOrLightHtmlTextBuilder>
- Returns:
- result string
-
toPlainText
- Returns:
- result string as plain text
-