Search in sources :

Example 1 with SelectRowGroupsAction

use of org.eclipse.nebula.widgets.nattable.selection.action.SelectRowGroupsAction in project nebula.widgets.nattable by eclipse.

the class DefaultRowGroupHeaderLayerConfiguration method configureUiBindings.

@Override
public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
    final IMouseAction action = new SelectRowGroupsAction();
    uiBindingRegistry.registerSingleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.NONE), action);
    uiBindingRegistry.registerSingleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.MOD1), action);
    uiBindingRegistry.registerSingleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.MOD2), action);
    uiBindingRegistry.registerDoubleClickBinding(MouseEventMatcher.rowGroupHeaderLeftClick(SWT.NONE), new RowGroupExpandCollapseAction());
}
Also used : RowGroupExpandCollapseAction(org.eclipse.nebula.widgets.nattable.group.action.RowGroupExpandCollapseAction) IMouseAction(org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction) SelectRowGroupsAction(org.eclipse.nebula.widgets.nattable.selection.action.SelectRowGroupsAction)

Aggregations

RowGroupExpandCollapseAction (org.eclipse.nebula.widgets.nattable.group.action.RowGroupExpandCollapseAction)1 SelectRowGroupsAction (org.eclipse.nebula.widgets.nattable.selection.action.SelectRowGroupsAction)1 IMouseAction (org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction)1