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

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


                | SWT.MOD1, SWT.END), action);
    }

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


                | SWT.MOD1, SWT.HOME), action);
    }

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

                | SWT.MOD1, SWT.PAGE_DOWN), action);
    }

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

    // *** Arrow keys selection bindings ***

    protected void configureMoveRightBindings(
            UiBindingRegistry uiBindingRegistry, IKeyAction action) {
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.ARROW_RIGHT), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT,
                SWT.ARROW_RIGHT), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1,
                SWT.ARROW_RIGHT), new MoveToLastColumnAction());
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT
                | SWT.MOD1, SWT.ARROW_RIGHT), new MoveToLastColumnAction());

        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.TAB), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1,
                SWT.TAB), action);
    }
View Full Code Here

                SWT.TAB), action);
    }

    protected void configureMoveLeftBindings(
            UiBindingRegistry uiBindingRegistry, IKeyAction action) {
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.ARROW_LEFT), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT,
                SWT.ARROW_LEFT), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1,
                SWT.ARROW_LEFT), new MoveToFirstColumnAction());
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT
                | SWT.MOD1, SWT.ARROW_LEFT), new MoveToFirstColumnAction());

        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT,
                SWT.TAB), new MoveSelectionAction(MoveDirectionEnum.LEFT,
                false, false));
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT
                | SWT.MOD1, SWT.TAB), action);
    }
View Full Code Here

                | SWT.MOD1, SWT.TAB), action);
    }

    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());

        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE,
                SWT.CR), action);
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.MOD1,
                SWT.CR), action);
    }
View Full Code Here

                SWT.CR), action);
    }

    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());

        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT,
                SWT.CR), new MoveSelectionAction(MoveDirectionEnum.UP, false,
                false));
        uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.SHIFT
                | SWT.MOD1, SWT.CR), action);
    }
View Full Code Here

    }

    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        TreeExpandCollapseKeyAction action = new TreeExpandCollapseKeyAction(this.selectionLayer);
        uiBindingRegistry.registerFirstKeyBinding(anchorLabel(this.selectionLayer, this.treeLayer, TREE_EXPANDED_CONFIG_TYPE, new KeyEventMatcher(SWT.NONE, 32)), action);
        uiBindingRegistry.registerFirstKeyBinding(anchorLabel(this.selectionLayer, this.treeLayer, TREE_COLLAPSED_CONFIG_TYPE, new KeyEventMatcher(SWT.NONE, 32)), action);
    }
View Full Code Here

        uiBindingRegistry.registerDoubleClickBinding(
                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 DefaultExportBindings implements IConfiguration {

    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerKeyBinding(
                new KeyEventMatcher(SWT.CTRL, 'e'), new ExportAction());
    }
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.