public interface TruncateTextBuilder extends Text<TruncateTextBuilder>
TextAccessor.TextBuilder<B extends TextAccessor.TextBuilder<B>>, TextAccessor.TextMutator, TextAccessor.TextProperty, TextAccessor.TextProvider
Modifier and Type | Method and Description |
---|---|
char[] |
getTruncateChars()
Retrieves the truncate chars from the truncate chars property.
|
TruncateTextMode |
getTruncateTextMode()
Retrieves the truncate text mode from the truncate text mode property.
|
void |
setTruncateChars(char... aTruncateChars)
Sets the truncate chars for the truncate chars property.
|
void |
setTruncateTextMode(TruncateTextMode aTruncateTextMode)
Sets the truncate text mode for the truncate text mode property.
|
String |
toString()
The
String being build by the builder upon the settings of the
attributes. |
String[] |
toStrings()
The
String s being build by the builder upon the settings of the
attributes. |
default TruncateTextBuilder |
withStripChars(char... aStripChars)
Sets the truncate chars for the truncate chars property.
|
default TruncateTextBuilder |
withText(String... aTextLines)
Sets the
String array for the text property. |
default TruncateTextBuilder |
withTruncateTextMode(TruncateTextMode aTruncateTextMode)
Sets the truncate text mode for the truncate text mode property.
|
getText
setText, setText
withText
TruncateTextMode getTruncateTextMode()
void setTruncateTextMode(TruncateTextMode aTruncateTextMode)
aTruncateTextMode
- The truncate text mode to be stored by the
truncate text mode property.default TruncateTextBuilder withTruncateTextMode(TruncateTextMode aTruncateTextMode)
aTruncateTextMode
- The truncate text mode to be stored by the
truncate text mode property.default TruncateTextBuilder withText(String... aTextLines)
String
array for the text property.withText
in interface Text<TruncateTextBuilder>
withText
in interface TextAccessor.TextBuilder<Text<TruncateTextBuilder>>
aTextLines
- The String
array be stored by the text
property.char[] getTruncateChars()
void setTruncateChars(char... aTruncateChars)
aTruncateChars
- The truncate chars to be stored by the text align
mode property.default TruncateTextBuilder withStripChars(char... aStripChars)
aStripChars
- The truncate chars to be stored by the text align mode
property.String[] toStrings()
String
s being build by the builder upon the settings of the
attributes.toStrings
in interface TextAccessor.TextProvider
String
arrayString toString() throws IllegalStateException
String
being build by the builder upon the settings of the
attributes.toString
in interface TextAccessor.TextProvider
toString
in class Object
String
IllegalStateException
- Thrown in case more than one text line has
been set via the withText(String...)
or
TextAccessor.TextMutator.setText(String...)
methods.Copyright © 2018. All rights reserved.