Interface SelectionBehavior
- All Known Implementing Classes:
DefaultSelectionBehavior
public interface SelectionBehavior
A selectionBehaviour manages the indices of selected pages in a
ThumbnailView
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
default void
onDown
(int index, boolean control, boolean shift) Deprecated.default void
onDown
(int index, boolean control, boolean shift, int button) React on mouse down.default void
onDragStart
(int index, boolean control, boolean shift) Deprecated.implementonDragStart(int, boolean, boolean, int)
insteaddefault void
onDragStart
(int index, boolean control, boolean shift, int button) React on drag starts.default void
onUp
(int index, boolean control, boolean shift) Deprecated.implementonUp(int, boolean, boolean, int)
insteaddefault void
onUp
(int index, boolean control, boolean shift, int button) React on mouse up.void
setSelection
(int[] selection)
-
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.implementonDown(int, boolean, boolean, int)
instead- Parameters:
index
- the page indexcontrol
-true
if control key is pressedshift
-true
if shift key is pressed
-
onUp
default void onUp(int index, boolean control, boolean shift) Deprecated.implementonUp(int, boolean, boolean, int)
instead- Parameters:
index
- the page indexcontrol
-true
if control key is pressedshift
-true
if shift key is pressed
-
onDragStart
default void onDragStart(int index, boolean control, boolean shift) Deprecated.implementonDragStart(int, boolean, boolean, int)
instead- Parameters:
index
- the page indexcontrol
-true
if control key is pressedshift
-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 indexcontrol
-true
if control key is pressedshift
-true
if shift key is pressedbutton
- 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 indexcontrol
-true
if control key is pressedshift
-true
if shift key is pressedbutton
- 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 indexcontrol
-true
if control key is pressedshift
-true
if shift key is pressedbutton
- the mouse button (NativeEvent.BUTTON_LEFT
etc.)
-
onDown(int, boolean, boolean, int)
instead