Interface SelectionReportListener

All Superinterfaces:
Serializable
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 SelectionReportListener extends Serializable
Receives the browser's selection in a text peer's input, for a caller that keeps its own caret model:
field.addSelectionReportListener((start, end, backward) ->
        caret.setDot(backward ? end : start), 1000);

Offsets are the input's selectionStart / selectionEnd, so start <= end; backward says the caret sits at start. The callback runs on the request thread, with the session locked and no UI fiber.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    selectionReported(int start, int end, boolean backward)
     
  • Method Details

    • selectionReported

      void selectionReported(int start, int end, boolean backward)