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

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


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

        // hide
        this.compositeFreezeLayer.doCommand(
                new MultiRowHideCommand(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(rowHideShowLayer);
    }

    @Test
    public void shouldAlsoHideRowWhichIsNotSelectedButHasAMouseOverIt() {
        selectionLayer.doCommand(new MultiRowHideCommand(selectionLayer, 2));
        Assert.assertTrue(rowHideShowLayer.isRowIndexHidden(2));
    }
View Full Code Here

        // Select row to hide
        new SelectRowCommandHandler(selectionLayer).selectRows(0,
                Arrays.asList(Integer.valueOf(2)), false, false, 2);

        // Hide row
        selectionLayer.doCommand(new MultiRowHideCommand(selectionLayer, 2));

        // The previously selected row should be hidden
        Assert.assertTrue(rowHideShowLayer.isRowIndexHidden(2));
        Assert.assertEquals(6, selectionLayer.getRowCount());
    }
View Full Code Here

                Arrays.asList(Integer.valueOf(2)), false, false, 2);
        selectionLayer.selectCell(0, 1, false, true);
        selectionLayer.selectCell(4, 4, false, true);

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

        // Previously selected rows should be hidden
        Assert.assertTrue(rowHideShowLayer.isRowIndexHidden(2));
        Assert.assertTrue(rowHideShowLayer.isRowIndexHidden(0));
View Full Code Here

TOP

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

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.