Package org.eclipse.nebula.widgets.nattable.test.fixture

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer


    @Test
    public void testFreezeSelectionAtBeginning() {
        selectionLayer.setSelectedCell(2, 2);
        compositeFreezeLayer.doCommand(new FreezeSelectionCommand());

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "0:0;100 | 1:1;100 | 2:0;100 | 3:1;100",
                "0:0;40  | 1:1;40  | 2:0;40  | 3:1;40",
                "A0~:FROZEN_REGION        | B0~:FROZEN_REGION        | C0~:FROZEN_ROW_REGION                      | D0~:FROZEN_ROW_REGION \n"
View Full Code Here


        selectionLayer.setSelectedCell(2, 2);
        viewportLayer.setOriginX(viewportLayer.getStartXOfColumnPosition(1));
        viewportLayer.setOriginY(viewportLayer.getStartYOfRowPosition(1));
        compositeFreezeLayer.doCommand(new FreezeSelectionCommand());

        TestLayer expectedLayer = new TestLayer(
                3,
                3,
                "1:0;100 | 2:0;100 | 3:1;100",
                "1:0;40  | 2:0;40  | 3:1;40",
                "B1~:FROZEN_REGION        | C1~:FROZEN_ROW_REGION                      | D1~:FROZEN_ROW_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 1));

        reorderLayer.reorderColumnPosition(3, 1);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "0:0;100 | 3:1;100 | 1:2;100 | 2:0;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "A0~:FROZEN_COLUMN_REGION | D0~:FROZEN_COLUMN_REGION | B0~:FROZEN_COLUMN_REGION | C0~:NONFROZEN_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 1));

        reorderLayer.reorderColumnPosition(3, 2);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "0:0;100 | 1:1;100 | 3:0;100 | 2:1;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "A0~:FROZEN_COLUMN_REGION | B0~:FROZEN_COLUMN_REGION | D0~:NONFROZEN_REGION | C0~:NONFROZEN_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 1));

        reorderLayer.reorderColumnPosition(3, 0);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "3:0;100 | 0:1;100 | 1:2;100 | 2:0;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "D0~:FROZEN_COLUMN_REGION | A0~:FROZEN_COLUMN_REGION | B0~:FROZEN_COLUMN_REGION | C0~:NONFROZEN_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 3));

        reorderLayer.reorderColumnPosition(2, 1);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "0:0;100 | 2:1;100 | 1:2;100 | 3:3;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "A0~:FROZEN_COLUMN_REGION | C0~:FROZEN_COLUMN_REGION | B0~:FROZEN_COLUMN_REGION | D0~:FROZEN_COLUMN_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 2));

        reorderLayer.reorderColumnPosition(1, 3);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "0:0;100 | 2:1;100 | 1:2;100 | 3:0;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "A0~:FROZEN_COLUMN_REGION | C0~:FROZEN_COLUMN_REGION | B0~:FROZEN_COLUMN_REGION | D0~:NONFROZEN_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 2));

        reorderLayer.reorderColumnPosition(1, 0);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "1:0;100 | 0:1;100 | 2:2;100 | 3:0;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "B0~:FROZEN_COLUMN_REGION | A0~:FROZEN_COLUMN_REGION | C0~:FROZEN_COLUMN_REGION | D0~:NONFROZEN_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 2));

        reorderLayer.reorderColumnPosition(0, 2);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "1:0;100 | 0:1;100 | 2:2;100 | 3:0;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "B0~:FROZEN_COLUMN_REGION | A0~:FROZEN_COLUMN_REGION | C0~:FROZEN_COLUMN_REGION | D0~:NONFROZEN_REGION \n"
View Full Code Here

        compositeFreezeLayer.doCommand(new FreezeColumnCommand(
                compositeFreezeLayer, 2));

        reorderLayer.reorderColumnPosition(0, 3);

        TestLayer expectedLayer = new TestLayer(
                4,
                4,
                "1:0;100 | 2:1;100 | 0:2;100 | 3:0;100",
                "0:0;40  | 1:1;40  | 2:2;40  | 3:3;40",
                "B0~:FROZEN_COLUMN_REGION | C0~:FROZEN_COLUMN_REGION | A0~:FROZEN_COLUMN_REGION | D0~:NONFROZEN_REGION \n"
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer

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.