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

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


    }

    @Test
    public void commandPassedOnToParentIfCannotBeHandled() throws Exception {
        ColumnReorderLayer reorderLayer = new ColumnReorderLayer(
                new DataLayerFixture());
        assertFalse(reorderLayer.doCommand(new LayerCommandFixture()));
    }
View Full Code Here


    }

    @Test
    public void canHandleColumnReorderCommand() throws Exception {
        ColumnReorderLayer reorderLayer = new ColumnReorderLayer(
                new DataLayerFixture());
        ColumnReorderCommand reorderCommand = new ColumnReorderCommand(
                reorderLayer, 0, 2);
        assertTrue(reorderLayer.doCommand(reorderCommand));
    }
View Full Code Here

        assertTrue(reorderLayer.doCommand(reorderCommand));
    }

    @Test
    public void getWidthForReorderedColumns() throws Exception {
        underlyingLayer = new DataLayerFixture();
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);

        // 0 1 2 3 4 - see DataLayerFixture
        columnReorderLayer.reorderColumnPosition(0, 5);
View Full Code Here

    }

    @SuppressWarnings("boxing")
    @Test
    public void getWidthForMultipleColumnsReordering() throws Exception {
        underlyingLayer = new DataLayerFixture();
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);

        // 0 1 2 3 4 - see DataLayerFixture
        columnReorderLayer.reorderMultipleColumnPositions(Arrays.asList(1, 2),
                5);
View Full Code Here

        assertEquals(35, columnReorderLayer.getColumnWidthByPosition(4));
    }

    @Test
    public void getStartXForReorderedColumn() throws Exception {
        underlyingLayer = new DataLayerFixture();
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);

        // 0 1 2 3 4 - see DataLayerFixture
        columnReorderLayer.reorderColumnPosition(0, 5);
View Full Code Here

        assertEquals(315, columnReorderLayer.getStartXOfColumnPosition(4));
    }

    @Test
    public void getConfigLabelsByPosition() throws Exception {
        DataLayer underlyingLayer = new DataLayerFixture();
        columnReorderLayer = new ColumnReorderLayer(underlyingLayer);
        ColumnOverrideLabelAccumulator columnLabelAccumulator = new ColumnOverrideLabelAccumulator(
                underlyingLayer);
        registerCellStyleAccumulators(underlyingLayer, columnLabelAccumulator);
View Full Code Here

    private SelectionModel model;

    @Before
    public void before() {
        SelectionLayer selectionLayer = new SelectionLayer(
                new DataLayerFixture(100, 100, 100, 40));
        model = new SelectionModel(selectionLayer);
    }
View Full Code Here

    }

    @Test
    public void commandPassedOnToParentIfCannotBeHandled() throws Exception {
        RowReorderLayer reorderLayer = new RowReorderLayer(
                new DataLayerFixture());
        assertFalse(reorderLayer.doCommand(new LayerCommandFixture()));
    }
View Full Code Here

    }

    @Test
    public void canHandleRowReorderCommand() throws Exception {
        RowReorderLayer reorderLayer = new RowReorderLayer(
                new DataLayerFixture());
        RowReorderCommand reorderCommand = new RowReorderCommand(reorderLayer,
                0, 2);
        assertTrue(reorderLayer.doCommand(reorderCommand));
    }
View Full Code Here

        assertTrue(reorderLayer.doCommand(reorderCommand));
    }

    @Test
    public void getHeightForReorderedRows() throws Exception {
        underlyingLayer = new DataLayerFixture();
        rowReorderLayer = new RowReorderLayer(underlyingLayer);

        // 0 1 2 3 4 - see DataLayerFixture
        rowReorderLayer.reorderRowPosition(0, 7);
View Full Code Here

TOP

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

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.