Package org.eclipse.nebula.widgets.nattable.grid.data

Examples of org.eclipse.nebula.widgets.nattable.grid.data.DummyBodyDataProvider


    }

    public Control createExampleControl(Composite parent) {
        return new NatTable(parent, new ViewportLayer(new SelectionLayer(
                new ColumnHideShowLayer(new DataLayer(
                        new DummyBodyDataProvider(500, 1000000))))));
    }
View Full Code Here


                .run(new ViewportSelectionReorderDataLayerExample());
    }

    public Control createExampleControl(Composite parent) {
        return new NatTable(parent, new ViewportLayer(new SelectionLayer(
                new ColumnReorderLayer(new DataLayer(new DummyBodyDataProvider(
                        500, 1000000))))));
    }
View Full Code Here

                + "customization however, you can assemble your own composite grid layer. This example shows how to assemble a layer that "
                + "only has a column header and body region.";
    }

    public Control createExampleControl(Composite parent) {
        DummyBodyDataProvider bodyDataProvider = new DummyBodyDataProvider(200,
                1000000);
        SelectionLayer selectionLayer = new SelectionLayer(
                new ColumnReorderLayer(new DataLayer(bodyDataProvider)));
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
View Full Code Here

                + "scrolling over a 1,000,000 column by 1,000,000 row data layer.";
    }

    public Control createExampleControl(Composite parent) {
        ViewportLayer layer = new ViewportLayer(new SelectionLayer(
                new DataLayer(new DummyBodyDataProvider(1000000, 1000000))));
        layer.setRegionName(GridRegion.BODY);
        return new NatTable(parent, layer);
    }
View Full Code Here

                + "* UNFREEZE COLUMNS AND ROWS with ctrl-shift-u.";
    }

    public Control createExampleControl(Composite parent) {
        // Body
        final DummyBodyDataProvider bodyDataProvider = new DummyBodyDataProvider(
                20, 1000);
        final DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
        final DefaultBodyLayerStack bodyLayer = new DefaultBodyLayerStack(
                bodyDataLayer);
        final SelectionLayer selectionLayer = bodyLayer.getSelectionLayer();
View Full Code Here

    public static void main(String[] args) throws Exception {
        StandaloneNatExampleRunner.run(new InvertedLayerExample());
    }

    public Control createExampleControl(Composite parent) {
        DummyBodyDataProvider bodyDataProvider = new DummyBodyDataProvider(5,
                10);
        DataLayer bodyDataLayer = new DataLayer(bodyDataProvider);
        bodyDataLayer.setDefaultRowHeight(100);
        SelectionLayer selectionLayer = new SelectionLayer(
                new ColumnHideShowLayer(new ColumnReorderLayer(bodyDataLayer)));
View Full Code Here

                + "the default example layer. In this case the backing layer is a basic data layer that simply displays dummy data and does "
                + "nothing else.";
    }

    public Control createExampleControl(Composite parent) {
        ILayer layer = new DataLayer(new DummyBodyDataProvider(20, 20));
        return new NatTable(parent, layer);
    }
View Full Code Here

    public static void main(String[] args) throws Exception {
        StandaloneNatExampleRunner.run(new CompositeGridLayerExample());
    }

    public Control createExampleControl(Composite parent) {
        DummyBodyDataProvider bodyDataProvider = new DummyBodyDataProvider(500,
                1000000);
        SelectionLayer selectionLayer = new SelectionLayer(
                new ColumnHideShowLayer(new ColumnReorderLayer(new DataLayer(
                        bodyDataProvider))));
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
View Full Code Here

    }

    @Test
    public void testViewportReorderDataLayerPerformance() {
        ColumnReorderLayer reorderLayer = new ColumnReorderLayer(new DataLayer(
                new DummyBodyDataProvider(1000000, 1000000)));
        reorderLayer.reorderColumnPosition(1, 2);
        layer = new ViewportLayer(reorderLayer);
    }
View Full Code Here

    @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

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.grid.data.DummyBodyDataProvider

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.