Examples of ShowAllColumnsCommand


Examples of org.eclipse.nebula.widgets.nattable.hideshow.command.ShowAllColumnsCommand

        assertEquals(0, this.viewportLayer.getMinimumOriginRowPosition());
        assertEquals(100, this.viewportLayer.getMinimumOrigin().getX());
        assertEquals(0, this.viewportLayer.getMinimumOrigin().getY());

        // show again
        this.compositeFreezeLayer.doCommand(new ShowAllColumnsCommand());

        assertEquals(1, this.freezeLayer.getColumnCount());
        assertEquals(0, this.freezeLayer.getRowCount());
        assertEquals(0, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.hideshow.command.ShowAllColumnsCommand

        assertEquals(0, this.viewportLayer.getMinimumOriginRowPosition());
        assertEquals(0, this.viewportLayer.getMinimumOrigin().getX());
        assertEquals(0, this.viewportLayer.getMinimumOrigin().getY());

        // show again
        this.compositeFreezeLayer.doCommand(new ShowAllColumnsCommand());

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(0, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.hideshow.command.ShowAllColumnsCommand

        assertEquals(0, this.viewportLayer.getMinimumOriginRowPosition());
        assertEquals(0, this.viewportLayer.getMinimumOrigin().getX());
        assertEquals(0, this.viewportLayer.getMinimumOrigin().getY());

        // show again
        this.compositeFreezeLayer.doCommand(new ShowAllColumnsCommand());

        assertEquals(0, this.freezeLayer.getColumnCount());
        assertEquals(0, this.freezeLayer.getRowCount());
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().columnPosition);
        assertEquals(-1, this.freezeLayer.getBottomRightPosition().rowPosition);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.hideshow.command.ShowAllColumnsCommand

        Assert.assertEquals(2, freezeLayer.getColumnCount());
        Assert.assertEquals(1, freezeLayer.getColumnIndexByPosition(0));
        Assert.assertEquals(3, freezeLayer.getColumnIndexByPosition(1));

        hideShowLayer.doCommand(new ShowAllColumnsCommand());

        Assert.assertEquals(3, freezeLayer.getColumnCount());
        Assert.assertEquals(1, freezeLayer.getColumnIndexByPosition(0));
        Assert.assertEquals(2, freezeLayer.getColumnIndexByPosition(1));
        Assert.assertEquals(3, freezeLayer.getColumnIndexByPosition(2));
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.hideshow.command.ShowAllColumnsCommand

    @Test
    public void testHideColumnCommand() {
        Assert.assertEquals(3, columnHideShowLayer.getColumnCount());

        columnHideShowLayer.doCommand(new ShowAllColumnsCommand());

        Assert.assertEquals(5, columnHideShowLayer.getColumnCount());

        Assert.assertEquals(4, columnHideShowLayer.getColumnIndexByPosition(0));
        Assert.assertEquals(1, columnHideShowLayer.getColumnIndexByPosition(1));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.