Interface TextInputSelectionListener

  • All Known Implementing Classes:
    TerraTextInputSkin, TextInputSelectionListener.Listeners
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TextInputSelectionListener
    Text input selection listener interface.
    • Method Detail

      • selectionChanged

        void selectionChanged​(TextInput textInput,
                              int previousSelectionStart,
                              int previousSelectionLength)
        Called when a text input's selection state has changed.
        Parameters:
        textInput - The source of the event.
        previousSelectionStart - If the selection changed directly, the previous selection start index. Otherwise, the current selection start index.
        previousSelectionLength - If the selection changed directly, the previous selection length. Otherwise, the current selection length.