Package org.eclipse.nebula.widgets.nattable.selection

Examples of org.eclipse.nebula.widgets.nattable.selection.SelectionLayer.addConfiguration()


                        return rowObject.getSecurity_id();
                    }

                }));

        selectionLayer
                .addConfiguration(new RowOnlySelectionConfiguration<RowDataFixture>());
        nattable.addConfiguration(new RowOnlySelectionBindings());

        nattable.configure();
View Full Code Here


        ListDataProvider<RowDataFixture> bodyDataProvider = glazedListsGridLayer
                .getBodyDataProvider();

        // Select complete rows
        RowOnlySelectionConfiguration<RowDataFixture> selectionConfig = new RowOnlySelectionConfiguration<RowDataFixture>();
        selectionLayer.addConfiguration(selectionConfig);
        nattable.addConfiguration(new RowOnlySelectionBindings());

        // Preserve selection on updates and sort
        selectionLayer.setSelectionModel(new RowSelectionModel<RowDataFixture>(
                selectionLayer, bodyDataProvider,
View Full Code Here

     * Set up selection behavior. Select cells vs select rows.
     */
    protected void configureSelectionStyle() {
        SelectionLayer selectionLayer = bodyLayer.getSelectionLayer();
        if (tableModel.enableFullRowSelection) {
            selectionLayer
                    .addConfiguration(new RowOnlySelectionConfiguration<T>());
            natTable.addConfiguration(new RowSelectionUIBindings());
            selectionLayer
                    .setSelectionModel(new RowSelectionModel<T>(selectionLayer,
                            bodyLayer.getDataProvider(), rowIdAccessor));
View Full Code Here

            natTable.addConfiguration(new RowSelectionUIBindings());
            selectionLayer
                    .setSelectionModel(new RowSelectionModel<T>(selectionLayer,
                            bodyLayer.getDataProvider(), rowIdAccessor));
        } else {
            selectionLayer
                    .addConfiguration(new DefaultSelectionLayerConfiguration());
        }
        natTable.addConfiguration(new SelectionStyleConfiguration(tableStyle));
    }
View Full Code Here

                }));

        // register different selection move command handler that always moves
        // by row
        selectionLayer
                .addConfiguration(new RowOnlySelectionConfiguration<Person>());

        // register selection bindings that will perform row selections instead
        // of cell selections
        // registering the bindings on a layer that is above the SelectionLayer
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.