Search in sources :

Example 1 with SelectRowAction

use of net.sourceforge.nattable.selection.action.SelectRowAction in project translationstudio8 by heartsome.

the class RowOnlySelectionBindings method configureBodyMouseClickBindings.

@Override
protected void configureBodyMouseClickBindings(UiBindingRegistry uiBindingRegistry) {
    IMouseAction action = new SelectRowAction();
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.NONE), action);
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.SHIFT), action);
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.CTRL), action);
    uiBindingRegistry.registerFirstSingleClickBinding(MouseEventMatcher.bodyLeftClick(SWT.SHIFT | SWT.CONTROL), action);
}
Also used : IMouseAction(net.sourceforge.nattable.ui.action.IMouseAction) SelectRowAction(net.sourceforge.nattable.selection.action.SelectRowAction)

Aggregations

SelectRowAction (net.sourceforge.nattable.selection.action.SelectRowAction)1 IMouseAction (net.sourceforge.nattable.ui.action.IMouseAction)1