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

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnReorderLayerFixture


    @Test
    public void getColumnWidthWhenTheColumnPositionsHaveBeenConverted()
            throws Exception {
        DataLayerFixture dataLayer = new DataLayerFixture();
        // Indexes re-ordered: 4 1 0 2 3
        ColumnReorderLayer reorderLayerFixture = new ColumnReorderLayerFixture(
                dataLayer);

        MultiColumnResizeCommand resizeCommand = new MultiColumnResizeCommand(
                reorderLayerFixture, new int[] { 1, 2 }, new int[] { 100, 150 });
        reorderLayerFixture.doCommand(resizeCommand);

        // As the Commands goes down the stack - positions might get converted
        // to entirely different values.
        Assert.assertEquals(-1, resizeCommand.getCommonColumnWidth());
        Assert.assertEquals(-1, resizeCommand.getColumnWidth(5));
View Full Code Here


    @Test
    public void isFirstVisibleWithColumnsReordered() throws Exception {
        // Original indexes : 0 1 2 3 4
        // Indexes reordered : 4 1 0 2 3
        ColumnReorderLayer reorderLayer = new ColumnReorderLayerFixture();
        underlyingLayer = new ColumnHideShowLayerFixture(reorderLayer);
        expandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                underlyingLayer, model);

        model.clear();
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnReorderLayerFixture

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.