public class CellEditDragMode extends CellSelectionDragMode
This is needed to treat minimal (not intended) drag&drop operations like clicks. It sometimes happens that on performing a click, the mouse moves a bit. So between mouseDown and mouseUp there is a movement registered, so it is not interpreted as a click anymore, but as a drag&drop operation. With this implementation registered the described behaviour is avoided.
Constructor and Description |
---|
CellEditDragMode() |
Modifier and Type | Method and Description |
---|---|
void |
mouseDown(NatTable natTable,
org.eclipse.swt.events.MouseEvent event) |
void |
mouseMove(NatTable natTable,
org.eclipse.swt.events.MouseEvent event) |
void |
mouseUp(NatTable natTable,
org.eclipse.swt.events.MouseEvent event) |
fireSelectionCommand
public void mouseDown(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
mouseDown
in interface IDragMode
mouseDown
in class CellSelectionDragMode
public void mouseMove(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
mouseMove
in interface IDragMode
mouseMove
in class CellSelectionDragMode
public void mouseUp(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
mouseUp
in interface IDragMode
mouseUp
in class CellSelectionDragMode
Copyright © 2013. All Rights Reserved.