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

Examples of org.eclipse.nebula.widgets.nattable.config.NullComparator


                // Register null comparator to disable sort
                configRegistry
                        .registerConfigAttribute(
                                SortConfigAttributes.SORT_COMPARATOR,
                                new NullComparator(), DisplayMode.NORMAL,
                                NO_SORT_LABEL);
            }
        };
    }
View Full Code Here


                        ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 1);

                // Register null comparator to disable sorting for gender column
                configRegistry.registerConfigAttribute(
                        SortConfigAttributes.SORT_COMPARATOR,
                        new NullComparator(), DisplayMode.NORMAL,
                        ColumnLabelAccumulator.COLUMN_LABEL_PREFIX + 2);
            }
        });

        natTable.configure();
View Full Code Here

                        SortConfigAttributes.SORT_COMPARATOR, comparator,
                        DisplayMode.NORMAL, columnHeaderLabel);
            } else {
                configRegistry.registerConfigAttribute(
                        SortConfigAttributes.SORT_COMPARATOR,
                        new NullComparator(), DisplayMode.NORMAL,
                        columnHeaderLabel);
            }
        }
    }
View Full Code Here

                .getColumnHeaderDataLayer();
        nattable.registerLabelOnColumnHeader(colHeaderDataLayer, 1, TEST_LABEL);

        // Disable sorting on column 2 - null comparator
        nattable.getConfigRegistry().registerConfigAttribute(
                SortConfigAttributes.SORT_COMPARATOR, new NullComparator(),
                DisplayMode.NORMAL, TEST_LABEL);

        altClickColumn2Header();

        // Assert no sort icon is displayed
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.config.NullComparator

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.