Search in sources :

Example 1 with DefaultComparator

use of net.sourceforge.nattable.config.DefaultComparator in project translationstudio8 by heartsome.

the class DefaultSortConfiguration method configureRegistry.

public void configureRegistry(IConfigRegistry configRegistry) {
    configRegistry.registerConfigAttribute(SortConfigAttributes.SORT_COMPARATOR, new DefaultComparator());
    ICellPainter sortableHeaderCellPainter = new BeveledBorderDecorator(new SortableHeaderTextPainter());
    configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, sortableHeaderCellPainter, DisplayMode.NORMAL, SORT_DOWN_CONFIG_TYPE);
    configRegistry.registerConfigAttribute(CellConfigAttributes.CELL_PAINTER, sortableHeaderCellPainter, DisplayMode.NORMAL, SORT_UP_CONFIG_TYPE);
}
Also used : SortableHeaderTextPainter(net.sourceforge.nattable.sort.painter.SortableHeaderTextPainter) BeveledBorderDecorator(net.sourceforge.nattable.painter.cell.decorator.BeveledBorderDecorator) DefaultComparator(net.sourceforge.nattable.config.DefaultComparator) ICellPainter(net.sourceforge.nattable.painter.cell.ICellPainter)

Aggregations

DefaultComparator (net.sourceforge.nattable.config.DefaultComparator)1 ICellPainter (net.sourceforge.nattable.painter.cell.ICellPainter)1 BeveledBorderDecorator (net.sourceforge.nattable.painter.cell.decorator.BeveledBorderDecorator)1 SortableHeaderTextPainter (net.sourceforge.nattable.sort.painter.SortableHeaderTextPainter)1