public interface MutableText extends Text
Text.Serializer
StringVisitable.StyledVisitor<T>, StringVisitable.Visitor<T>
EMPTY, TERMINATE_VISIT
Modifier and Type | Method and Description |
---|---|
default MutableText |
append(String text)
Appends a literal text with content
text to this text's siblings. |
MutableText |
append(Text text)
Appends a text to this text's siblings.
|
default MutableText |
fillStyle(Style styleOverride)
Fills the absent parts of this text's style with definitions from
styleOverride . |
default MutableText |
formatted(Formatting formatting)
Add a formatting to this text's style.
|
default MutableText |
formatted(Formatting[] formattings)
Adds some formattings to this text's style.
|
MutableText |
setStyle(Style style)
Sets the style of this text.
|
default MutableText |
styled(UnaryOperator<Style> styleUpdater)
Updates the style of this text.
|
asOrderedText, asString, asTruncatedString, copy, getSiblings, getString, getStyle, of, shallowCopy, visit, visit, visitSelf, visitSelf
concat, concat, plain, styled
MutableText setStyle(Style style)
default MutableText append(String text)
text
to this text's siblings.text
- the literal text contentMutableText append(Text text)
text
- the siblingdefault MutableText styled(UnaryOperator<Style> styleUpdater)
styleUpdater
- the style updaterText.getStyle()
,
setStyle(Style)
default MutableText fillStyle(Style styleOverride)
styleOverride
.styleOverride
- the style that provides definitions for absent definitions in this text's styleStyle.withParent(Style)
default MutableText formatted(Formatting[] formattings)
formattings
- an array of formattingsdefault MutableText formatted(Formatting formatting)
formatting
- a formatting