Class DefaultSelectionBehavior
java.lang.Object
com.levigo.jadice.web.client.tools.selectionbehavior.DefaultSelectionBehavior
- All Implemented Interfaces:
SelectionBehavior
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidonDown(int index, boolean control, boolean shift, int button) React on mouse down.voidonDragStart(int index, boolean control, boolean shift, int button) React on drag starts.voidonUp(int index, boolean control, boolean shift, int button) React on mouse up.protected voidselect(int index, boolean control, boolean shift) voidsetSelection(int[] selection) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.levigo.jadice.web.client.tools.selectionbehavior.SelectionBehavior
onDown, onDragStart, onUp
-
Constructor Details
-
DefaultSelectionBehavior
public DefaultSelectionBehavior()
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceSelectionBehavior
-
setSelection
public void setSelection(int[] selection) - Specified by:
setSelectionin interfaceSelectionBehavior
-
getSelection
- Specified by:
getSelectionin interfaceSelectionBehavior
-
onDown
public void onDown(int index, boolean control, boolean shift, int button) Description copied from interface:SelectionBehaviorReact on mouse down.- Specified by:
onDownin interfaceSelectionBehavior- Parameters:
index- the page indexcontrol-trueif control key is pressedshift-trueif shift key is pressedbutton- the mouse button (NativeEvent.BUTTON_LEFTetc.)
-
onUp
public void onUp(int index, boolean control, boolean shift, int button) Description copied from interface:SelectionBehaviorReact on mouse up.- Specified by:
onUpin interfaceSelectionBehavior- Parameters:
index- the page indexcontrol-trueif control key is pressedshift-trueif shift key is pressedbutton- the mouse button (NativeEvent.BUTTON_LEFTetc.)
-
onDragStart
public void onDragStart(int index, boolean control, boolean shift, int button) Description copied from interface:SelectionBehaviorReact on drag starts.- Specified by:
onDragStartin interfaceSelectionBehavior- Parameters:
index- the page indexcontrol-trueif control key is pressedshift-trueif shift key is pressedbutton- the mouse button (NativeEvent.BUTTON_LEFTetc.)
-
select
protected void select(int index, boolean control, boolean shift)
-