public class MouseEditAction extends Object implements IMouseClickAction
EditCellCommand. It determines the cell
to edit by mouse pointer coordinates instead of using a SelectionLayer. So
this action is also working in NatTables that doesn't have a SelectionLayer
in its composition of layers.| Constructor and Description |
|---|
MouseEditAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExclusive()
Configuration of this IMouseClickAction to specify the behaviour when
this action is configured to be a single click action, and there is also
a double click action registered.
|
void |
run(NatTable natTable,
org.eclipse.swt.events.MouseEvent event)
Translates the SWT MouseEvent to a NatTable command and executes that
command accordingly.
|
public void run(NatTable natTable, org.eclipse.swt.events.MouseEvent event)
IMouseActionrun in interface IMouseActionnatTable - The NatTable instance on which the MouseEvent was fired and on
which the command should be executed.event - The received MouseEvent.public boolean isExclusive()
IMouseClickAction
If this method returns true, this means either the single
OR the double click action is executed. Returning
false will execute the single click action immediately and
the double click action additionally.
Note: Being an exclusive action means that the double click action will be executed and the single click action will be cancelled. This also means that the single click action will not be performed until the double click action time is waited.
isExclusive in interface IMouseClickActiontrue if this action is exclusive, false
if not.Copyright © 2019. All rights reserved.