Interface CanModifyText

All Known Implementing Classes:
SuperTextArea, SuperTextField, TextModificationDelegate
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 CanModifyText
Marker interface for objects that can modify text at given coordinates.
Since:
2021-03-26
Author:
miki
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    modifyText(String replacement)
    Modifies the text currently selected.
    default void
    modifyText(String replacement, int from)
    Modifies the text currently selected - from the specified index to the end of current selection.
    void
    modifyText(String replacement, int from, int to)
    Modifies the text at given coordinates.
  • Method Details

    • modifyText

      void modifyText(String replacement, int from, int to)
      Modifies the text at given coordinates.
      Parameters:
      replacement - Text to put.
      from - The starting index of what to replace.
      to - The end index of what to replace.
    • modifyText

      default void modifyText(String replacement)
      Modifies the text currently selected.
      Parameters:
      replacement - Text to put.
    • modifyText

      default void modifyText(String replacement, int from)
      Modifies the text currently selected - from the specified index to the end of current selection.
      Parameters:
      replacement - Text to put.
      from - Starting index.