Examples of FreezeColumnCommand


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

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

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

        reorderLayer.reorderColumnPosition(0, 2);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

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

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

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

        reorderLayer.reorderColumnPosition(0, 3);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

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

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

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

        reorderLayer.reorderColumnPosition(2, 1);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

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

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

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

        reorderLayer.reorderColumnPosition(2, 0);

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

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

    // Hide/show

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

        hideShowLayer.hideColumnPositions(Arrays.asList(new Integer[] { 1 }));

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

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

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

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

        hideShowLayer.hideColumnPositions(Arrays.asList(new Integer[] { 0 }));

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

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

        LayerAssert.assertLayerEquals(expectedLayer, compositeFreezeLayer);
    }

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

        hideShowLayer.hideColumnPositions(Arrays.asList(new Integer[] { 2 }));

        TestLayer expectedLayer = new TestLayer(
View Full Code Here

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

    // Freeze

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

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

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

    }

    @Test
    public void testFreezeColumns() {
        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
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.