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 Type
    Method
    Description
    void
    select(int from, int to)
    Selects text starting from index from (inclusive) and ending at index to (exclusive).
    void
    Selects entire text in the component.
    void
    Removes 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 index from (inclusive) and ending at index to (exclusive).
      Parameters:
      from - Starting index (inclusive).
      to - Ending index (exclusive).