Package org.eclipse.nebula.widgets.nattable.ui.matcher

Examples of org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher


        uiBindingRegistry.registerFirstSingleClickBinding(
                new FilterRowMouseEventMatcher(), new MouseEditAction());
        uiBindingRegistry.registerFirstSingleClickBinding(
                new ClearFilterIconMouseEventMatcher(cellPainter),
                new ClearFilterAction());
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(
                showHideKeyConstant), new ToggleFilterRowAction());
    }
View Full Code Here


    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        // configure the space key to activate a cell editor via keyboard
        // this is especially useful for changing the value for a checkbox
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE, 32),
                new KeyEditAction());
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.F2), new KeyEditAction());
        uiBindingRegistry.registerKeyBinding(
                new LetterOrDigitKeyEventMatcher(), new KeyEditAction());
        uiBindingRegistry.registerKeyBinding(new LetterOrDigitKeyEventMatcher(
                SWT.SHIFT), new KeyEditAction());
View Full Code Here

import org.eclipse.swt.SWT;

public class DefaultFreezeGridBindings extends AbstractUiBindingConfiguration {

    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.CTRL
                | SWT.SHIFT, 'f'), new FreezeGridAction());
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.CTRL
                | SWT.SHIFT, 'u'), new UnFreezeGridAction());
    }
View Full Code Here

        uiBindingRegistry.registerFirstSingleClickBinding(
                MouseEventMatcher.columnGroupHeaderLeftClick(SWT.NONE),
                new ColumnGroupExpandCollapseAction());

        uiBindingRegistry.registerKeyBinding(
                new KeyEventMatcher(SWT.CTRL, 'g'),
                new CreateColumnGroupAction());
        uiBindingRegistry.registerKeyBinding(
                new KeyEventMatcher(SWT.CTRL, 'u'), new UngroupColumnsAction());
    }
View Full Code Here

public class RowSelectionUIBindings extends RowOnlySelectionBindings {

    @Override
    protected void configureMoveDownBindings(
            UiBindingRegistry uiBindingRegistry, IKeyAction action) {
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.ARROW_DOWN), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT,
                SWT.ARROW_DOWN), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1,
                SWT.ARROW_DOWN), new MoveToLastRowAction());
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT
                | SWT.MOD1, SWT.ARROW_DOWN), new MoveToLastRowAction());
    }
View Full Code Here

    }

    @Override
    protected void configureMoveUpBindings(UiBindingRegistry uiBindingRegistry,
            IKeyAction action) {
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.ARROW_UP), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT,
                SWT.ARROW_UP), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1,
                SWT.ARROW_UP), new MoveToFirstRowAction());
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT
                | SWT.MOD1, SWT.ARROW_UP), new MoveToFirstRowAction());
    }
View Full Code Here

public class DefaultSearchBindings extends AbstractUiBindingConfiguration {

    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerKeyBinding(
                new KeyEventMatcher(SWT.CTRL, 'f'), new SearchAction());
    }
View Full Code Here

                selectionLayer));
    }

    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.KEYPAD_ADD), new TickUpdateAction(true));

        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.KEYPAD_SUBTRACT), new TickUpdateAction(false));
    }
View Full Code Here

        configureEndButtonBindings(uiBindingRegistry,
                new MoveToLastColumnAction());

        // Select all
        uiBindingRegistry.registerKeyBinding(
                new KeyEventMatcher(SWT.MOD1, 'a'), new SelectAllAction());

        // Copy
        uiBindingRegistry.registerKeyBinding(
                new KeyEventMatcher(SWT.MOD1, 'c'), new CopyDataAction());

        // Mouse bindings - select Cell
        configureBodyMouseClickBindings(uiBindingRegistry);

        // Mouse bindings - select columns
View Full Code Here

    // *** pg. up, pg. down, home, end keys selection bindings ***

    protected void configureEndButtonBindings(
            UiBindingRegistry uiBindingRegistry, IKeyAction action) {
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.END), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT,
                SWT.END), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1,
                SWT.END), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT
                | SWT.MOD1, SWT.END), action);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.ui.matcher.KeyEventMatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.