public class OverwriteTextBuilderImpl extends Object implements OverwriteTextBuilder
TextAccessor.TextBuilder<B extends TextAccessor.TextBuilder<B>>, TextAccessor.TextMutator, TextAccessor.TextProperty
Constructor and Description |
---|
OverwriteTextBuilderImpl() |
Modifier and Type | Method and Description |
---|---|
OverwriteTextMode |
getOverwriteTextMode()
Retrieves the overwrite text mode from the overwrite text mode property.
|
String |
getOverwritingText()
Retrieves the overwriting text from the overwriting text property.
|
String[] |
getText()
Retrieves the text from the text property.
|
void |
setOverwritingText(String aOverwritingText)
Sets the overwriting text for the overwriting text property.
|
void |
setText(String... aText)
Sets the text for the text property.
|
void |
setTextOverwriteMode(OverwriteTextMode aOverwriteTextMode)
Sets the overwrite text mode for the overwrite text mode property.
|
protected static String |
toOverwrite(String aText,
String aWriteOverText,
OverwriteTextMode aOverwriteTextMode) |
protected static String |
toOverwriteLeft(String aText,
String aWriteOverText)
Overwrites a text starting at the left hand side with the given
"overwriting" text.
|
protected static String |
toOverwriteRight(String aText,
String aWriteOverText)
Overwrites a text starting at the right hand side with the given
"overwriting" text.
|
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. |
B |
withText(Collection<String> aText)
Sets the text for the text property.
|
B |
withText(String... aText)
Sets the text for the text property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
withOverwriteTextMode, withOverwritingText
getText
setText, setText
withText
public String getOverwritingText()
OverwriteTextBuilder
getOverwritingText
in interface OverwriteTextBuilder
public void setOverwritingText(String aOverwritingText)
OverwriteTextBuilder
setOverwritingText
in interface OverwriteTextBuilder
aOverwritingText
- The overwriting text to be stored by the
overwriting text property.public OverwriteTextMode getOverwriteTextMode()
OverwriteTextBuilder
getOverwriteTextMode
in interface OverwriteTextBuilder
public void setTextOverwriteMode(OverwriteTextMode aOverwriteTextMode)
OverwriteTextBuilder
setTextOverwriteMode
in interface OverwriteTextBuilder
aOverwriteTextMode
- The overwrite text mode to be stored by the
overwrite text mode property.public String[] toStrings()
Text
String
s being build by the builder upon the settings of the
attributes.toStrings
in interface Text<OverwriteTextBuilder>
String
arrayprotected static String toOverwrite(String aText, String aWriteOverText, OverwriteTextMode aOverwriteTextMode)
protected static String toOverwriteLeft(String aText, String aWriteOverText)
aText
- The text to be overwritten.aWriteOverText
- The text used for overwriting.String
overwritten on the left hand side with the given
"overwriting" text.protected static String toOverwriteRight(String aText, String aWriteOverText)
aText
- The text to be overwritten.aWriteOverText
- The text used for overwriting.String
overwritten on the right hand side with the
given "overwriting" text.public String[] getText()
TextAccessor
getText
in interface TextAccessor
public void setText(String... aText)
TextAccessor.TextMutator
setText
in interface TextAccessor.TextMutator
aText
- The text to be stored by the text property.public B withText(String... aText)
TextAccessor.TextBuilder
public B withText(Collection<String> aText)
TextAccessor.TextBuilder
withText
in interface TextAccessor.TextBuilder<Text<B extends Text<B>>>
aText
- The text to be stored by the text property.public String toString()
Copyright © 2016. All rights reserved.