Examples of IDataProvider


Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

                valuesToShow, configRegistry);

        SelectionLayer selectionLayer = bodyLayer.getSelectionLayer();

        // Column header
        IDataProvider columnHeaderDataProvider = new DefaultColumnHeaderDataProvider(
                propertyNames, propertyToLabelMap);
        ILayer columnHeaderLayer = new ColumnHeaderLayer(
                new DefaultColumnHeaderDataLayer(columnHeaderDataProvider),
                bodyLayer, selectionLayer);

        // Row header
        IDataProvider rowHeaderDataProvider = new DefaultSummaryRowHeaderDataProvider(
                bodyLayer.getDataLayer().getDataProvider(), "\u2211");
        ILayer rowHeaderLayer = new RowHeaderLayer(
                new DefaultRowHeaderDataLayer(rowHeaderDataProvider),
                bodyLayer, selectionLayer);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

        propertyToLabelMap.put("address.city", "City");
        propertyToLabelMap.put("favouriteFood", "Food");
        propertyToLabelMap.put("favouriteDrinks", "Drinks");
        propertyToLabelMap.put("filename", "Filename");

        IDataProvider bodyDataProvider = new ListDataProvider<ExtendedPersonWithAddress>(
                PersonService.getExtendedPersonsWithAddress(10),
                new ExtendedReflectiveColumnPropertyAccessor<ExtendedPersonWithAddress>(
                        propertyNames));

        DefaultGridLayer gridLayer = new DefaultGridLayer(bodyDataProvider,
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

                + "  Different style can be applied to the individual cells in the summary row\n"
                + "  Plug-in your own summary formulas via ISummaryProvider interface (Default is summation)";
    }

    public Control createExampleControl(Composite parent) {
        myDataProvider = new IDataProvider() {

            public int getColumnCount() {
                return 4;
            }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

        return tableContainer;
    }

    private void createNatTable(Composite parent, final ICellPainter painter) {
        IDataProvider bodyDataProvider = new ExampleTextBodyDataProvider();
        DataLayer dataLayer = new DataLayer(bodyDataProvider);
        dataLayer.setRowHeightByPosition(0, 32);
        SelectionLayer selectionLayer = new SelectionLayer(dataLayer);
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

        natTable.configure();
        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
    }

    private void createNatTable2(Composite parent, final ICellPainter painter) {
        IDataProvider bodyDataProvider = new ExampleTextBodyDataProvider();
        DataLayer dataLayer = new DataLayer(bodyDataProvider);
        dataLayer.setRowHeightByPosition(0, 32);
        SelectionLayer selectionLayer = new SelectionLayer(dataLayer);
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
    }

    private void createVerticalHeaderNatTable(Composite parent,
            final ICellPainter painter) {
        IDataProvider bodyDataProvider = new ExampleHeaderDataProvider();
        SelectionLayer selectionLayer = new SelectionLayer(new DataLayer(
                bodyDataProvider));
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);

        ColumnHeaderLayer columnHeaderLayer = new ColumnHeaderLayer(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

        GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable);
    }

    @SuppressWarnings("unused")
    private void createNatTable3(Composite parent, final ICellPainter painter) {
        IDataProvider bodyDataProvider = new ExampleHeaderDataProvider();
        DataLayer dataLayer = new DataLayer(bodyDataProvider);

        SelectionLayer selectionLayer = new SelectionLayer(dataLayer);
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

    }

    @SuppressWarnings("unused")
    private void createVerticalNatTable(Composite parent,
            final ICellPainter painter) {
        IDataProvider bodyDataProvider = new ExampleHeaderDataProvider();
        SelectionLayer selectionLayer = new SelectionLayer(new DataLayer(
                bodyDataProvider, 20, 100));
        ViewportLayer viewportLayer = new ViewportLayer(selectionLayer);

        ColumnHeaderLayer columnHeaderLayer = new ColumnHeaderLayer(
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

    private ColumnHeaderLayer columnHeaderLayer;
    private CopyDataCommandHandler commandHandler;

    @Before
    public void setUp() {
        final IDataProvider bodyDataProvider = new DataProviderFixture(10, 10);
        gridLayer = new DefaultGridLayer(bodyDataProvider,
                getColumnHeaderDataProvider(bodyDataProvider),
                getRowHeaderDataProvider(bodyDataProvider));
        gridLayer.setClientAreaProvider(new IClientAreaProvider() {
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.data.IDataProvider

                columnHeaderLayer, rowHeaderLayer);
    }

    private IDataProvider getRowHeaderDataProvider(
            final IDataProvider bodyDataProvider) {
        return new IDataProvider() {

            public int getColumnCount() {
                return 1;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.