@OpenApiAll
public interface TextBuilder<T extends TextBuilder>
Modifier and Type | Method and Description |
---|---|
T |
append(java.lang.CharSequence text)
Append given text
|
default T |
append(TextBuilder builder)
Append text from given builder
|
default T |
appendWithNoWrap(java.lang.CharSequence text)
Append text from the given builder.
|
default void |
compress(int textLength)
Compress current text to the given length.
|
default boolean |
isColorSupported() |
default boolean |
isPlainTextEmpty() |
boolean |
isTextAdded() |
T |
prepend(java.lang.CharSequence text)
Add given text to the beginning.
|
default T |
prepend(TextBuilder builder)
Add text to the beginning from the given builder.
|
default T |
prependWithNoWrap(java.lang.CharSequence text)
Add text to the beginning.
|
default 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
|
default T |
setText(TextBuilder builder)
Replaces current text with the one from the given builder
|
java.lang.String |
toPlainText() |
java.lang.String |
toString() |
default T append(TextBuilder builder)
builder
- builderdefault T prepend(TextBuilder builder)
builder
- builderdefault T prependWithNoWrap(java.lang.CharSequence text)
text
- text to prependdefault T appendWithNoWrap(java.lang.CharSequence text)
text
- text to prependdefault T setText(TextBuilder builder)
builder
- builderT append(java.lang.CharSequence text)
text
- text to appendT prepend(java.lang.CharSequence text)
text
- text to appenddefault T setColor(@CheckForNull java.awt.Color color)
color
- color to set. Null is used to reset previously set colorjava.lang.String toString()
toString
in class java.lang.Object
java.lang.String toPlainText()
default boolean isPlainTextEmpty()
void setText(java.lang.CharSequence text)
text
- textdefault void compress(int textLength)
textLength
- text lengthboolean isTextAdded()
default boolean isColorSupported()