@OpenApiAll public abstract class AbstractTextBuilder<T extends AbstractTextBuilder> extends java.lang.Object implements TextBuilder<T>
Constructor and Description |
---|
AbstractTextBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
append(java.lang.CharSequence text)
Append given text
|
protected java.lang.String |
appendColor(java.lang.String text) |
protected void |
appendToText(java.lang.String text) |
boolean |
isTextAdded() |
T |
prepend(java.lang.CharSequence text)
Add given text to the beginning.
|
protected java.lang.String |
prependColor(java.lang.String text) |
protected void |
prependToText(java.lang.String text) |
protected void |
replaceText(java.lang.String text) |
void |
setText(java.lang.CharSequence text)
Replace current text with the given one
|
protected int |
textLength() |
protected java.lang.String |
toAppendableText(java.lang.String text) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendWithNoWrap, compress, isColorSupported, isPlainTextEmpty, prepend, prependWithNoWrap, setColor, setText, toPlainText
public boolean isTextAdded()
isTextAdded
in interface TextBuilder<T extends AbstractTextBuilder>
public T append(java.lang.CharSequence text)
TextBuilder
append
in interface TextBuilder<T extends AbstractTextBuilder>
text
- text to appendpublic T prepend(java.lang.CharSequence text)
TextBuilder
prepend
in interface TextBuilder<T extends AbstractTextBuilder>
text
- text to appendprotected java.lang.String appendColor(java.lang.String text)
protected java.lang.String prependColor(java.lang.String text)
public void setText(java.lang.CharSequence text)
TextBuilder
setText
in interface TextBuilder<T extends AbstractTextBuilder>
text
- textpublic java.lang.String toString()
toString
in interface TextBuilder<T extends AbstractTextBuilder>
toString
in class java.lang.Object
protected final void appendToText(java.lang.String text)
protected final void prependToText(java.lang.String text)
protected final int textLength()
protected final void replaceText(java.lang.String text)
protected java.lang.String toAppendableText(java.lang.String text)