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

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


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

        // hide
        this.compositeFreezeLayer.doCommand(
                new MultiColumnHideCommand(this.compositeFreezeLayer, new int[] { 1, 2, 3, 4 }));

        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


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

        // hide
        this.compositeFreezeLayer.doCommand(
                new MultiColumnHideCommand(this.compositeFreezeLayer, new int[] { 0, 1, 2 }));

        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

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

        // hide
        this.compositeFreezeLayer.doCommand(
                new MultiColumnHideCommand(this.compositeFreezeLayer, new int[] { 0, 1, 2, 3, 4 }));

        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

        selectionLayer = new SelectionLayer(columnHideShowLayer);
    }

    @Test
    public void shouldAlsoHideColumnWhichIsNotSelectedButHasAMouseOverIt() {
        selectionLayer.doCommand(new MultiColumnHideCommand(selectionLayer, 2));
        Assert.assertTrue(columnHideShowLayer.isColumnIndexHidden(2));
    }
View Full Code Here

        // Select column to hide
        new SelectColumnCommandHandler(selectionLayer).selectColumn(2, 0,
                false, false);

        // Hide column
        selectionLayer.doCommand(new MultiColumnHideCommand(selectionLayer, 2));

        // The previously selected column should be hidden
        Assert.assertTrue(columnHideShowLayer.isColumnIndexHidden(2));
        Assert.assertEquals(4, selectionLayer.getColumnCount());
    }
View Full Code Here

                false, true);
        selectionLayer.selectCell(1, 0, false, true);
        selectionLayer.selectCell(4, 4, false, true);

        // Hide selection
        selectionLayer.doCommand(new MultiColumnHideCommand(selectionLayer,
                new int[] { 2, 0, 4 }));

        // Previously selected columns should be hidden
        Assert.assertTrue(columnHideShowLayer.isColumnIndexHidden(2));
        Assert.assertTrue(columnHideShowLayer.isColumnIndexHidden(0));
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.hideshow.command.MultiColumnHideCommand

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.