Package org.vaadin.miki.markers
Interface CanSelectText
- All Known Implementing Classes:
AbstractSuperFloatingPointField,AbstractSuperNumberField,SuperBigDecimalField,SuperDatePicker,SuperDoubleField,SuperIntegerField,SuperLongField,SuperTextArea,SuperTextField,TextModificationDelegate,TextSelectionDelegate
public interface CanSelectText
Marker 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
Modifier and TypeMethodDescriptionvoidselect(int from, int to) Selects text starting from indexfrom(inclusive) and ending at indexto(exclusive).voidSelects entire text in the component.voidRemoves the current selection and selects no text.
-
Method Details
-
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).
-