}
}
}
protected void configureSorting() {
ColumnOverrideLabelAccumulator columnHeaderLabelAccumulator = new ColumnOverrideLabelAccumulator(
columnHeaderLayer.getDataLayer());
columnHeaderLayer.addLabelAccumulator(columnHeaderLabelAccumulator);
for (int colIndex = 0; colIndex < columns.length; colIndex++) {
String columnHeaderLabel = COLUMN_HEADER_COLUMN_LABEL_PREFIX
+ colIndex;
// Register an accumulator on the Column Header layer (since it
// triggers sort)
columnHeaderLabelAccumulator.registerColumnOverrides(colIndex,
columnHeaderLabel);
if (columns[colIndex].isSortable) {
Comparator<?> comparator = columns[colIndex].comparator;
configRegistry.registerConfigAttribute(