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

Examples of org.eclipse.nebula.widgets.nattable.selection.config.DefaultSelectionStyleConfiguration


        DefaultRowStyleConfiguration rowStyleConfiguration = new DefaultRowStyleConfiguration();
        rowStyleConfiguration.oddRowBgColor = GUIHelper.getColor(254, 251, 243);
        rowStyleConfiguration.evenRowBgColor = GUIHelper.COLOR_WHITE;

        // Setup selection styling
        DefaultSelectionStyleConfiguration selectionStyle = new DefaultSelectionStyleConfiguration();
        selectionStyle.selectionFont = GUIHelper.getFont(new FontData(
                "Verdana", 8, SWT.NORMAL));
        selectionStyle.selectionBgColor = GUIHelper.getColor(217, 232, 251);
        selectionStyle.selectionFgColor = GUIHelper.COLOR_BLACK;
        selectionStyle.anchorBorderStyle = new BorderStyle(1,
View Full Code Here


        // turned off
        // for the SortHeaderLayer (setup in the GlazedListsGridLayer)
        nattable.addConfiguration(new SingleClickSortConfiguration());
        nattable.addConfiguration(getCustomComparatorConfiguration(glazedListsGridLayer
                .getColumnHeaderLayerStack().getDataLayer()));
        nattable.addConfiguration(new DefaultSelectionStyleConfiguration());

        nattable.addConfiguration(new HeaderMenuConfiguration(nattable) {
            @Override
            protected PopupMenuBuilder createColumnHeaderMenu(NatTable natTable) {
                return super.createColumnHeaderMenu(natTable)
View Full Code Here

        gridLayer = new SelectionExampleGridLayer();
        nattable = new NatTable(parent, gridLayer, false);

        nattable.addConfiguration(new DefaultNatTableStyleConfiguration());
        nattable.addConfiguration(new HeaderMenuConfiguration(nattable));
        nattable.addConfiguration(new DefaultSelectionStyleConfiguration());

        // Custom selection configuration
        SelectionLayer selectionLayer = gridLayer.getSelectionLayer();
        selectionLayer.setSelectionModel(new RowSelectionModel<RowDataFixture>(
                selectionLayer, gridLayer.getBodyDataProvider(),
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.selection.config.DefaultSelectionStyleConfiguration

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.