Package org.vaadin.miki.markers
Interface CanSelectText
-
- All Known Implementing Classes:
AbstractSuperFloatingPointField,AbstractSuperNumberField,SuperBigDecimalField,SuperDatePicker,SuperDoubleField,SuperIntegerField,SuperLongField,SuperTextArea,SuperTextField,TextModificationDelegate,TextSelectionDelegate
public interface CanSelectTextMarker interface for components that can select text. What selecting text means and how it is done is left to the implementations.- Since:
- 2020-05-29
- Author:
- miki
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidselect(int from, int to)Selects text starting from indexfrom(inclusive) and ending at indexto(exclusive).voidselectAll()Selects entire text in the component.voidselectNone()Removes the current selection and selects no text.
-
-
-
Method Detail
-
selectAll
void selectAll()
Selects entire text in the component.
-
selectNone
void selectNone()
Removes the current selection and selects no text.
-
select
void select(int from, int to)Selects text starting from indexfrom(inclusive) and ending at indexto(exclusive).- Parameters:
from- Starting index (inclusive).to- Ending index (exclusive).
-
-