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

Examples of org.eclipse.nebula.widgets.nattable.freeze.command.FreezeColumnCommand


    @Test
    public void testFreezeHideShowColumnBothRegionsFreezeAll() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeColumnCommand(this.compositeFreezeLayer, 1));

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


    @Test
    public void testFreezeHideShowColumnBothRegionsAll() {
        // freeze
        this.compositeFreezeLayer.doCommand(
                new FreezeColumnCommand(this.compositeFreezeLayer, 1));

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

    // Freeze column

    @Test
    public void testFreezeAllColumns() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 3));

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
View Full Code Here

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

    @Test
    public void testFreezeColumns() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 1));

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
View Full Code Here

    // Reorder

    @Test
    public void testReorderNonFrozenColumnToMiddleOfFrozenArea() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 1));

        reorderLayer.reorderColumnPosition(3, 1);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

    @Test
    public void testReorderNonFrozenColumnToEndOfFrozenArea() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 1));

        reorderLayer.reorderColumnPosition(3, 2);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

    @Test
    public void testReorderNonFrozenColumnToBeginningOfFrozenArea() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 1));

        reorderLayer.reorderColumnPosition(3, 0);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

    @Test
    public void testReorderMiddleFrozenColumnToMiddleOfFrozenArea() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 3));

        reorderLayer.reorderColumnPosition(2, 1);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

    @Test
    public void testReorderMiddleFrozenColumnToEndOfFrozenArea() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 2));

        reorderLayer.reorderColumnPosition(1, 3);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

    @Test
    public void testReorderMiddleFrozenColumnToBeginningOfFrozenArea() {
        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 2));

        reorderLayer.reorderColumnPosition(1, 0);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.freeze.command.FreezeColumnCommand

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.