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 TypeMethodDescriptionvoidclear()default voidonDown(int index, boolean control, boolean shift) Deprecated.default voidonDown(int index, boolean control, boolean shift, int button) React on mouse down.default voidonDragStart(int index, boolean control, boolean shift) Deprecated.implementonDragStart(int, boolean, boolean, int)insteaddefault voidonDragStart(int index, boolean control, boolean shift, int button) React on drag starts.default voidonUp(int index, boolean control, boolean shift) Deprecated.implementonUp(int, boolean, boolean, int)insteaddefault voidonUp(int index, boolean control, boolean shift, int button) React on mouse up.voidsetSelection(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-trueif control key is pressedshift-trueif 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-trueif control key is pressedshift-trueif 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-trueif control key is pressedshift-trueif 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-trueif control key is pressedshift-trueif shift key is pressedbutton- the mouse button (NativeEvent.BUTTON_LEFTetc.)
-
onUp
default void onUp(int index, boolean control, boolean shift, int button) React on mouse up.- Parameters:
index- the page indexcontrol-trueif control key is pressedshift-trueif shift key is pressedbutton- the mouse button (NativeEvent.BUTTON_LEFTetc.)
-
onDragStart
default void onDragStart(int index, boolean control, boolean shift, int button) React on drag starts.- Parameters:
index- the page indexcontrol-trueif control key is pressedshift-trueif shift key is pressedbutton- the mouse button (NativeEvent.BUTTON_LEFTetc.)
-
onDown(int, boolean, boolean, int)instead