@OpenApiAll public class ColoredHtmlTextBuilder<T extends ColoredHtmlTextBuilder> extends HtmlTextBuilder<T>
| Constructor and Description | 
|---|
ColoredHtmlTextBuilder()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.String | 
appendColor(java.lang.String text)  | 
static ColoredHtmlTextBuilder | 
createColoredHtmlTextBuilderPreferLightHtml()
Creates and instance of builder which outputs light html if full html was not appended. 
 | 
boolean | 
isColorSupported()  | 
protected java.lang.String | 
prependColor(java.lang.String text)  | 
T | 
setColor(java.awt.Color color)
Set color of the text which will be added later. 
 | 
void | 
setText(java.lang.CharSequence text)
Replace current text with the given one 
 | 
java.lang.String | 
toString()  | 
appendWithNoWrap, createHtmlTextBuilderPreferLightHtml, preferLightHtml, prependWithNoWrap, replaceSpaceToNbsp, toAppendableText, toPlainTextappend, appendToText, isTextAdded, prepend, prependToText, replaceText, textLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappend, compress, isPlainTextEmpty, prepend, setTextpublic T setColor(@CheckForNull java.awt.Color color)
TextBuildercolor - color to set. Null is used to reset previously set colorprotected java.lang.String appendColor(java.lang.String text)
appendColor in class AbstractTextBuilder<T extends ColoredHtmlTextBuilder>protected java.lang.String prependColor(java.lang.String text)
prependColor in class AbstractTextBuilder<T extends ColoredHtmlTextBuilder>public void setText(java.lang.CharSequence text)
TextBuildersetText in interface TextBuilder<T extends ColoredHtmlTextBuilder>setText in class AbstractTextBuilder<T extends ColoredHtmlTextBuilder>text - textpublic java.lang.String toString()
toString in interface TextBuilder<T extends ColoredHtmlTextBuilder>toString in class HtmlTextBuilder<T extends ColoredHtmlTextBuilder>public boolean isColorSupported()
public static ColoredHtmlTextBuilder createColoredHtmlTextBuilderPreferLightHtml()