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

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


    private ChooseColumnsFromCategoriesCommandHandler commandHandler;
    private ColumnHideShowLayerFixture hideShowLayerFixture;

    @Before
    public void setup() {
        hideShowLayerFixture = new ColumnHideShowLayerFixture();
        commandHandler = new ChooseColumnsFromCategoriesCommandHandler(
                hideShowLayerFixture, new ColumnHeaderLayerFixture(),
                new DataLayerFixture(), new ColumnCategoriesModelFixture());
    }
View Full Code Here


    @Before
    public void setup() {
        model = new ColumnGroupModel();

        // 10 Columns in total - column 10 hidden
        underlyingLayer = new ColumnHideShowLayerFixture(9);
        expandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                underlyingLayer, model);

        model.addColumnsIndexesToGroup(TEST_GROUP_NAME, 2, 3, 4, 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();
        model.addColumnsIndexesToGroup(TEST_GROUP_NAME, 0, 2, 3);
View Full Code Here

    private ColumnHideShowLayer columnHideShowLayer;

    @Before
    public void setup() {
        columnHideShowLayer = new ColumnHideShowLayerFixture();
    }
View Full Code Here

        assertEquals(-1, columnHideShowLayer.getColumnIndexByPosition(5));
    }

    @Test
    public void showColumnPositions() throws Exception {
        columnHideShowLayer = new ColumnHideShowLayerFixture(
                new DataLayerFixture(10, 2, 100, 20));

        assertEquals(10, columnHideShowLayer.getColumnCount());

        columnHideShowLayer.hideColumnPositions(Arrays.asList(3, 4, 5));
View Full Code Here

    private ColumnHideShowLayer columnHideShowLayer;

    @Before
    public void setup() {
        columnHideShowLayer = new ColumnHideShowLayerFixture();
    }
View Full Code Here

TOP

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

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.