Package org.eclipse.nebula.widgets.nattable.hideshow

Examples of org.eclipse.nebula.widgets.nattable.hideshow.ColumnHideShowLayer


    }

    @SuppressWarnings("boxing")
    @Test
    public void testViewportHideShowDataLayerPerformance() {
        ColumnHideShowLayer hideShowLayer = new ColumnHideShowLayer(
                new DataLayer(new DummyBodyDataProvider(1000000, 1000000)));
        hideShowLayer
                .hideColumnPositions(Arrays.asList(new Integer[] { 3, 5 }));
        layer = new ViewportLayer(hideShowLayer);
    }
View Full Code Here


public class BodyStackLayerPerformanceTest extends AbstractLayerPerformanceTest {

    @Test
    public void testViewportHideShowReorderDataLayerPerformance() {
        layer = new ViewportLayer(new ColumnHideShowLayer(
                new ColumnReorderLayer(new DataLayer(new DummyBodyDataProvider(
                        1000000, 1000000)))));
    }
View Full Code Here

                        1000000, 1000000)))));
    }

    @Test
    public void testViewportSelectionHideShowReorderDataLayerPerformance() {
        layer = new ViewportLayer(new SelectionLayer(new ColumnHideShowLayer(
                new ColumnReorderLayer(new DataLayer(new DummyBodyDataProvider(
                        1000000, 1000000))))));
    }
View Full Code Here

                ConfigRegistry configRegistry) {
            IDataProvider dataProvider = new ListDataProvider<NumberValues>(
                    valuesToShow, new CalculatingDataProvider());
            bodyDataLayer = new DataLayer(dataProvider);
            columnReorderLayer = new ColumnReorderLayer(bodyDataLayer);
            columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
            selectionLayer = new SelectionLayer(columnHideShowLayer);
            viewportLayer = new ViewportLayer(selectionLayer);
            setUnderlyingLayer(viewportLayer);

            registerCommandHandler(new CopyDataCommandHandler(selectionLayer));
View Full Code Here

        GlazedListsEventLayer<Person> eventLayer = new GlazedListsEventLayer<Person>(
                bodyDataLayer, sortedList);

        ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                eventLayer);
        ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                columnReorderLayer);
        SelectionLayer selectionLayer = new SelectionLayer(columnHideShowLayer);
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);

        // build the column header layer
View Full Code Here

        ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                eventLayer);
        ColumnGroupReorderLayer columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer, columnGroupModel);
        ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                columnGroupReorderLayer);
        ColumnGroupExpandCollapseLayer columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                columnHideShowLayer, columnGroupModel);
        SelectionLayer selectionLayer = new SelectionLayer(
                columnGroupExpandCollapseLayer);
View Full Code Here

                10, 50)));
    }

    @Test
    public void testHideShowDataLayerPerformance() {
        layer = new ColumnHideShowLayer(new DataLayer(
                new DummyBodyDataProvider(10, 50)));
    }
View Full Code Here

        ColumnGroupModel columnGroupModel = new ColumnGroupModel();
        columnReorderLayer = new ColumnReorderLayer(glazedListsEventLayer);
        columnGroupReorderLayer = new ColumnGroupReorderLayer(
                columnReorderLayer, columnGroupModel);
        columnHideShowLayer = new ColumnHideShowLayer(columnGroupReorderLayer);
        columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                columnHideShowLayer, columnGroupModel);
        selectionLayer = new SelectionLayer(columnGroupExpandCollapseLayer);
        viewportLayer = new ViewportLayer(selectionLayer);
View Full Code Here

        if (tableModel.enableColumnGroups) {
            columnReorderLayer = new ColumnReorderLayer(glazedListsEventLayer);
            columnGroupReorderLayer = new ColumnGroupReorderLayer(
                    columnReorderLayer, tableModel.columnGroupModel);
            columnHideShowLayer = new ColumnHideShowLayer(
                    columnGroupReorderLayer);
            columnGroupExpandCollapseLayer = new ColumnGroupExpandCollapseLayer(
                    columnHideShowLayer, tableModel.columnGroupModel);
            selectionLayer = new SelectionLayer(columnGroupExpandCollapseLayer);
            viewportLayer = new ViewportLayer(selectionLayer);
        } else {
            columnReorderLayer = new ColumnReorderLayer(glazedListsEventLayer);
            columnHideShowLayer = new ColumnHideShowLayer(columnReorderLayer);
            selectionLayer = new SelectionLayer(columnHideShowLayer);
            viewportLayer = new ViewportLayer(selectionLayer);
        }

        freezeLayer = new FreezeLayer(selectionLayer);
View Full Code Here

        IDataProvider bodyDataProvider = new ListDataProvider<PersonWithAddress>(
                data, accessor);
        DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
        ColumnReorderLayer columnReorderLayer = new ColumnReorderLayer(
                bodyDataLayer);
        ColumnHideShowLayer columnHideShowLayer = new ColumnHideShowLayer(
                columnReorderLayer);
        SelectionLayer selectionLayer = new SelectionLayer(columnHideShowLayer);
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);

        // build the column header layer
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.hideshow.ColumnHideShowLayer

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.