Interface MutableMultiTextHolder
- All Superinterfaces:
MultiTextHolder
A
MutableMultiTextHolder is a MultiTextHolder whose texts
can be added and removed programmatically.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given text to the currentMutableMultiTextHolderif the currentMutableMultiTextHolderdoes not contain already the given text.voidremoveText(String text) Removes the given text from the currentMutableMultiTextHolderif the currentMutableMultiTextHoldercontains the given text.voidRemoves all texts from the currentMutableMultiTextHolder.Methods inherited from interface MultiTextHolder
getTexts
-
Method Details
-
addText
Adds the given text to the currentMutableMultiTextHolderif the currentMutableMultiTextHolderdoes not contain already the given text.- Parameters:
text-- Throws:
RuntimeException- if the given text is null or blank
-
removeText
Removes the given text from the currentMutableMultiTextHolderif the currentMutableMultiTextHoldercontains the given text.- Parameters:
text-
-
removeTexts
void removeTexts()Removes all texts from the currentMutableMultiTextHolder.
-