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

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


        this.overrideFreeze = overrideFreeze;
    }

    @Override
    public void run(NatTable natTable, KeyEvent event) {
        natTable.doCommand(new FreezeSelectionCommand(this.toggle,
                this.overrideFreeze));
    }
View Full Code Here


    // Freeze selection

    @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",
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",
View Full Code Here

TOP

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

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.