Package org.vaadin.miki.markers
Interface CanModifyText
- All Known Implementing Classes:
SuperTextArea,SuperTextField,TextModificationDelegate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Marker interface for objects that can modify text at given coordinates.
- Since:
- 2021-03-26
- Author:
- miki
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidmodifyText(String replacement) Modifies the text currently selected.default voidmodifyText(String replacement, int from) Modifies the text currently selected - from the specified index to the end of current selection.voidmodifyText(String replacement, int from, int to) Modifies the text at given coordinates.
-
Method Details
-
modifyText
Modifies the text at given coordinates.- Parameters:
replacement- Text to put.from- The starting index of what to replace.to- The end index of what to replace.
-
modifyText
Modifies the text currently selected.- Parameters:
replacement- Text to put.
-
modifyText
Modifies the text currently selected - from the specified index to the end of current selection.- Parameters:
replacement- Text to put.from- Starting index.
-