@OpenApiAll public class RawTextBuilder<T extends RawTextBuilder> extends java.lang.Object implements TextBuilder<T>
appendTo(TextBuilder) is used and proper builder is passed.| Constructor and Description |
|---|
RawTextBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
append(java.lang.CharSequence text)
Append given text
|
void |
appendTo(TextBuilder builder)
Appends text from this builder to the given one.
|
boolean |
isColorSupported() |
boolean |
isTextAdded() |
T |
prepend(java.lang.CharSequence text)
Add given text to the beginning.
|
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 |
toPlainText() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappend, appendWithNoWrap, compress, isPlainTextEmpty, prepend, prependWithNoWrap, setTextpublic T append(java.lang.CharSequence text)
TextBuilderappend in interface TextBuilder<T extends RawTextBuilder>text - text to appendpublic T prepend(java.lang.CharSequence text)
TextBuilderprepend in interface TextBuilder<T extends RawTextBuilder>text - text to appendpublic java.lang.String toString()
toString in interface TextBuilder<T extends RawTextBuilder>toString in class java.lang.Objectpublic void setText(java.lang.CharSequence text)
TextBuildersetText in interface TextBuilder<T extends RawTextBuilder>text - textpublic java.lang.String toPlainText()
toPlainText in interface TextBuilder<T extends RawTextBuilder>public T setColor(@CheckForNull java.awt.Color color)
TextBuildersetColor in interface TextBuilder<T extends RawTextBuilder>color - color to set. Null is used to reset previously set colorpublic boolean isColorSupported()
isColorSupported in interface TextBuilder<T extends RawTextBuilder>public void appendTo(TextBuilder builder)
builder - given builderpublic boolean isTextAdded()
isTextAdded in interface TextBuilder<T extends RawTextBuilder>