Package org.eclipse.nebula.widgets.nattable.selection.command

Examples of org.eclipse.nebula.widgets.nattable.selection.command.ScrollSelectionCommand


        super(MoveDirectionEnum.UP);
    }

    public void run(NatTable natTable, KeyEvent event) {
        super.run(natTable, event);
        natTable.doCommand(new ScrollSelectionCommand(MoveDirectionEnum.UP,
                isShiftMask(), isControlMask()));
    }
View Full Code Here


        super(MoveDirectionEnum.DOWN);
    }

    public void run(NatTable natTable, KeyEvent event) {
        super.run(natTable, event);
        natTable.doCommand(new ScrollSelectionCommand(MoveDirectionEnum.DOWN,
                isShiftMask(), isControlMask()));
    }
View Full Code Here

        assertEquals(0, this.viewportLayer.getRowCount());
    }

    @Test
    public void scrollVerticallyByAPageCommand() throws Exception {
        ScrollSelectionCommand scrollCommand = new ScrollSelectionCommandFixture();
        MoveSelectionCommand command = new MoveSelectionCommand(
                scrollCommand.getDirection(), this.viewportLayer.getRowCount(),
                scrollCommand.isShiftMask(), scrollCommand.isControlMask());

        assertEquals(MoveDirectionEnum.DOWN, command.getDirection());
        assertEquals(2, command.getStepSize().intValue());
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.selection.command.ScrollSelectionCommand

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.