Interface SelectionBehavior

All Known Implementing Classes:
DefaultSelectionBehavior

public interface SelectionBehavior
A selectionBehaviour manages the indices of selected pages in a ThumbnailView
  • Method Details

    • clear

      void clear()
    • setSelection

      void setSelection(int[] selection)
    • getSelection

      Collection<Integer> getSelection()
    • onDown

      default void onDown(int index, boolean control, boolean shift)
      Deprecated.
      Parameters:
      index - the page index
      control - true if control key is pressed
      shift - true if shift key is pressed
    • onUp

      default void onUp(int index, boolean control, boolean shift)
      Deprecated.
      Parameters:
      index - the page index
      control - true if control key is pressed
      shift - true if shift key is pressed
    • onDragStart

      default void onDragStart(int index, boolean control, boolean shift)
      Deprecated.
      Parameters:
      index - the page index
      control - true if control key is pressed
      shift - true if shift key is pressed
    • onDown

      default void onDown(int index, boolean control, boolean shift, int button)
      React on mouse down.
      Parameters:
      index - the page index
      control - true if control key is pressed
      shift - true if shift key is pressed
      button - the mouse button (NativeEvent.BUTTON_LEFT etc.)
    • onUp

      default void onUp(int index, boolean control, boolean shift, int button)
      React on mouse up.
      Parameters:
      index - the page index
      control - true if control key is pressed
      shift - true if shift key is pressed
      button - the mouse button (NativeEvent.BUTTON_LEFT etc.)
    • onDragStart

      default void onDragStart(int index, boolean control, boolean shift, int button)
      React on drag starts.
      Parameters:
      index - the page index
      control - true if control key is pressed
      shift - true if shift key is pressed
      button - the mouse button (NativeEvent.BUTTON_LEFT etc.)