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

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


                                .removeColumnGroupMenuItemProvider()).build();

        natTable.addConfiguration(new AbstractUiBindingConfiguration() {
            public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
                uiBindingRegistry.registerFirstMouseDownBinding(
                        new MouseEventMatcher(SWT.NONE,
                                GridRegion.COLUMN_GROUP_HEADER,
                                MouseEventMatcher.RIGHT_BUTTON),
                        new PopupMenuAction(columnGroupHeaderMenu));
            }
        });
View Full Code Here


        });
    }

    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
                SWT.NONE, GroupByHeaderLayer.GROUP_BY_REGION,
                MouseEventMatcher.RIGHT_BUTTON) {
            @Override
            public boolean matches(NatTable natTable, MouseEvent event,
                    LabelStack regionLabels) {
View Full Code Here

            }
        });
    }

    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
                SWT.NONE, GridRegion.BODY, 3), new PopupMenuAction(bodyMenu));
    }
View Full Code Here

            }
        });
    }

    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
                SWT.NONE, GridRegion.COLUMN_HEADER, 3), new PopupMenuAction(
                colHeaderMenu));
    }
View Full Code Here

        uiBindingRegistry.registerFirstMouseMoveBinding(
                new RowResizeEventMatcher(SWT.NONE, 0),
                new RowResizeCursorAction());
        // apply a hover styling on moving the mouse over a NatTable and clear
        // the cursor
        uiBindingRegistry.registerMouseMoveBinding(new MouseEventMatcher(
                GridRegion.ROW_HEADER), new HoverStylingAction(layer));

        // clear any hover styling if the mouse is moved out of the region area
        // uiBindingRegistry.registerMouseMoveBinding(
        // new IMouseEventMatcher() {
View Full Code Here

                new ColumnResizeEventMatcher(SWT.NONE,
                        GridRegion.COLUMN_HEADER, 0),
                new ColumnResizeCursorAction());
        // apply a hover styling on moving the mouse over a NatTable and clear
        // the cursor
        uiBindingRegistry.registerMouseMoveBinding(new MouseEventMatcher(
                GridRegion.COLUMN_HEADER), new HoverStylingAction(layer));

        // clear any hover styling if the mouse is moved out of a NatTable
        // region
        uiBindingRegistry.registerMouseMoveBinding(new IMouseEventMatcher() {
View Full Code Here

     * (org.eclipse.nebula.widgets.nattable.ui.binding.UiBindingRegistry)
     */
    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        if (this.colHeaderMenu != null) {
            uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
                    SWT.NONE, GridRegion.COLUMN_HEADER,
                    MouseEventMatcher.RIGHT_BUTTON), new PopupMenuAction(
                    this.colHeaderMenu));
        }

        if (this.rowHeaderMenu != null) {
            uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
                    SWT.NONE, GridRegion.ROW_HEADER,
                    MouseEventMatcher.RIGHT_BUTTON), new PopupMenuAction(
                    this.rowHeaderMenu));
        }

        if (this.cornerMenu != null) {
            uiBindingRegistry.registerMouseDownBinding(
                    new MouseEventMatcher(SWT.NONE, GridRegion.CORNER,
                            MouseEventMatcher.RIGHT_BUTTON),
                    new PopupMenuAction(this.cornerMenu));
        }
    }
View Full Code Here

        });
    }

    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
                SWT.NONE, GridRegion.COLUMN_HEADER, 3), new PopupMenuAction(
                colHeaderMenu));
    }
View Full Code Here

            }
        });
    }

    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
                SWT.NONE, null, 3), new PopupMenuAction(debugMenu));
    }
View Full Code Here

                CellConfigAttributes.CELL_PAINTER, cellPainter,
                DisplayMode.NORMAL, SORT_UP_CONFIG_TYPE);
    }

    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {
        uiBindingRegistry.registerSingleClickBinding(new MouseEventMatcher(
                SWT.ALT, GridRegion.COLUMN_HEADER.toString(), 1),
                new SortColumnAction(false));

        uiBindingRegistry.registerSingleClickBinding(new MouseEventMatcher(
                SWT.ALT | SWT.SHIFT, GridRegion.COLUMN_HEADER.toString(), 1),
                new SortColumnAction(true));
    }
View Full Code Here

TOP

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

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.