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

Examples of org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction


    }

    @Override
    public void mouseDown(MouseEvent event) {
        if (natTable.commitAndCloseActiveCellEditor()) {
            IMouseAction mouseDownAction = natTable.getUiBindingRegistry()
                    .getMouseDownAction(event);
            if (mouseDownAction != null) {
                event.data = NatEventData.createInstanceFromEvent(event);
                mouseDownAction.run(natTable, event);
            }

            IMouseAction singleClickAction = getUiBindingRegistry()
                    .getSingleClickAction(event);
            IMouseAction doubleClickAction = getUiBindingRegistry()
                    .getDoubleClickAction(event);
            IDragMode dragMode = natTable.getUiBindingRegistry().getDragMode(
                    event);

            if (singleClickAction != null || doubleClickAction != null
View Full Code Here


    }

    @Override
    public synchronized void mouseMove(MouseEvent event) {
        if (event.x >= 0 && event.y >= 0) {
            IMouseAction mouseMoveAction = getUiBindingRegistry()
                    .getMouseMoveAction(event);
            if (mouseMoveAction != null) {
                event.data = NatEventData.createInstanceFromEvent(event);
                mouseMoveAction.run(natTable, event);
            } else {
                natTable.setCursor(null);
            }
        }
    }
View Full Code Here

    }

    @Override
    public synchronized void mouseHover(MouseEvent event) {
        if (event.x >= 0 && event.y >= 0) {
            IMouseAction mouseHoverAction = getUiBindingRegistry()
                    .getMouseHoverAction(event);
            if (mouseHoverAction != null) {
                event.data = NatEventData.createInstanceFromEvent(event);
                mouseHoverAction.run(natTable, event);
            }
        }
    }
View Full Code Here

    }

    @Override
    public synchronized void mouseEnter(MouseEvent event) {
        if (event.x >= 0 && event.y >= 0) {
            IMouseAction mouseEnterAction = getUiBindingRegistry()
                    .getMouseEnterAction(event);
            if (mouseEnterAction != null) {
                event.data = NatEventData.createInstanceFromEvent(event);
                mouseEnterAction.run(natTable, event);
            } else {
                natTable.setCursor(null);
            }
        }
    }
View Full Code Here

    }

    @Override
    public synchronized void mouseExit(MouseEvent event) {
        if (event.x >= 0 && event.y >= 0) {
            IMouseAction mouseExitAction = getUiBindingRegistry()
                    .getMouseExitAction(event);
            if (mouseExitAction != null) {
                event.data = NatEventData.createInstanceFromEvent(event);
                mouseExitAction.run(natTable, event);
            } else {
                natTable.setCursor(null);
            }
        }
    }
View Full Code Here

    // *** Mouse bindings ***

    protected void configureBodyMouseClickBindings(
            UiBindingRegistry uiBindingRegistry) {
        IMouseAction action = new SelectCellAction();
        uiBindingRegistry.registerMouseDownBinding(
                MouseEventMatcher.bodyLeftClick(SWT.NONE), action);
        uiBindingRegistry.registerMouseDownBinding(
                MouseEventMatcher.bodyLeftClick(SWT.SHIFT), action);
        uiBindingRegistry.registerMouseDownBinding(
View Full Code Here

public class RowOnlySelectionBindings extends DefaultSelectionBindings {

    @Override
    protected void configureBodyMouseClickBindings(
            UiBindingRegistry uiBindingRegistry) {
        IMouseAction action = new SelectRowAction();
        uiBindingRegistry.registerMouseDownBinding(
                MouseEventMatcher.bodyLeftClick(SWT.NONE), action);
        uiBindingRegistry.registerMouseDownBinding(
                MouseEventMatcher.bodyLeftClick(SWT.SHIFT), action);
        uiBindingRegistry.registerMouseDownBinding(
View Full Code Here

    }

    @Override
    public void configureUiBindings(UiBindingRegistry uiBindingRegistry) {

        final IMouseAction action = new SelectRowGroupsAction();
        uiBindingRegistry.registerSingleClickBinding(
                MouseEventMatcher.rowGroupHeaderLeftClick(SWT.NONE), action);
        uiBindingRegistry.registerSingleClickBinding(
                MouseEventMatcher.rowGroupHeaderLeftClick(SWT.CTRL), action);
        uiBindingRegistry.registerSingleClickBinding(
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.ui.action.IMouseAction

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.