Package org.refcodes.textual
Interface MoreTextBuilder
-
- All Superinterfaces:
org.refcodes.mixin.ColumnWidthAccessor
,org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<MoreTextBuilder>
,org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
,org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
,Text<MoreTextBuilder>
,TextAccessor
,TextAccessor.TextBuilder<Text<MoreTextBuilder>>
,TextAccessor.TextMutator
,TextAccessor.TextProperty
,TextAccessor.TextProvider
- All Known Implementing Classes:
MoreTextBuilderImpl
public interface MoreTextBuilder extends Text<MoreTextBuilder>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<MoreTextBuilder>
A builder for processing a text with the given width applied and the givenMoreTextMode
applied.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ColumnWidthAccessor
org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B extends org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<B>>, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator, org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthProperty
-
Nested classes/interfaces inherited from interface org.refcodes.textual.TextAccessor
TextAccessor.TextBuilder<B extends TextAccessor.TextBuilder<B>>, TextAccessor.TextMutator, TextAccessor.TextProperty, TextAccessor.TextProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
getMoreText()
Retrieves the more text from the more text property.MoreTextMode
getMoreTextMode()
Retrieves the more text mode from the more text mode property.void
setMoreText(java.lang.String aMoreText)
Sets the more text for the more text property.void
setMoreTextMode(MoreTextMode aMoreTextMode)
Sets the more text mode for the more text mode property.java.lang.String
toString()
TheString
being build by the builder upon the settings of the attributes.java.lang.String[]
toStrings()
TheString
s being build by the builder upon the settings of the attributes.default MoreTextBuilder
withColumnWidth(int aColumnWidth)
default MoreTextBuilder
withMoreText(java.lang.String aMoreText)
Sets the more text for the more text property.default MoreTextBuilder
withMoreTextMode(MoreTextMode aMoreTextMode)
Sets the more text mode for the more text mode property.-
Methods inherited from interface org.refcodes.mixin.ColumnWidthAccessor.ColumnWidthMutator
setColumnWidth
-
Methods inherited from interface org.refcodes.textual.TextAccessor
getText
-
Methods inherited from interface org.refcodes.textual.TextAccessor.TextBuilder
withText
-
Methods inherited from interface org.refcodes.textual.TextAccessor.TextMutator
setText, setText
-
-
-
-
Method Detail
-
withColumnWidth
default MoreTextBuilder withColumnWidth(int aColumnWidth)
- Specified by:
withColumnWidth
in interfaceorg.refcodes.mixin.ColumnWidthAccessor.ColumnWidthBuilder<MoreTextBuilder>
-
getMoreTextMode
MoreTextMode getMoreTextMode()
Retrieves the more text mode from the more text mode property.- Returns:
- The more text mode stored by the more text mode property.
-
setMoreTextMode
void setMoreTextMode(MoreTextMode aMoreTextMode)
Sets the more text mode for the more text mode property.- Parameters:
aMoreTextMode
- The more text mode to be stored by the more text mode property.
-
withMoreTextMode
default MoreTextBuilder withMoreTextMode(MoreTextMode aMoreTextMode)
Sets the more text mode for the more text mode property.- Parameters:
aMoreTextMode
- the more text mode- Returns:
- The builder for applying multiple build operations.
-
getMoreText
java.lang.String getMoreText()
Retrieves the more text from the more text property.- Returns:
- The more text stored by the more text property.
-
setMoreText
void setMoreText(java.lang.String aMoreText)
Sets the more text for the more text property.- Parameters:
aMoreText
- The more text to be stored by the more text mode property.
-
withMoreText
default MoreTextBuilder withMoreText(java.lang.String aMoreText)
Sets the more text for the more text property.- Parameters:
aMoreText
- the more text- Returns:
- The builder for applying multiple build operations.
-
toStrings
java.lang.String[] toStrings()
TheString
s being build by the builder upon the settings of the attributes.- Specified by:
toStrings
in interfaceTextAccessor.TextProvider
- Returns:
- The according resulting
String
array
-
toString
java.lang.String toString() throws java.lang.IllegalStateException
TheString
being build by the builder upon the settings of the attributes.- Specified by:
toString
in interfaceTextAccessor.TextProvider
- Overrides:
toString
in classjava.lang.Object
- Returns:
- The according resulting
String
- Throws:
java.lang.IllegalStateException
- Thrown in case more than one text line has been set via theText.withText(String...)
orTextAccessor.TextMutator.setText(String...)
methods.
-
-