Interface SyTextSelectionServiceType

All Superinterfaces:
com.io7m.repetoir.core.RPServiceType, SyServiceType

public interface SyTextSelectionServiceType extends SyServiceType

The text selection service.

The text selection service tracks the selected text on a given screen.

  • Method Details

    • selectionClear

      void selectionClear()
      Clear the screen's current text selection.
    • selectionSet

      void selectionSet(SyComponentReadableType component, SyTextSelection selection)
      Set the screen's current text selection, stating that selection is owned by the given component.
      Parameters:
      component - The component that owns the selection
      selection - The selection
    • isComponentSelected

      Determine if the given component has text selected.
      Parameters:
      component - The component
      Returns:
      The selection status
    • selectionClearIfComponentSelected

      default boolean selectionClearIfComponentSelected(SyComponentReadableType component)
      Clear the selection if the given component is the component that has text selected.
      Parameters:
      component - The component
      Returns:
      true if a selection was cleared