//End
ColumnModel cm = new ColumnModel(columns);
cm.addAggregationRow(totalSummary);
ColumnConfig column = cm.getColumn(0);
column.setRenderer(createDeleteButtonRenderer());
column = cm.getColumn(1);
column.setRenderer(new GridCellRenderer<ProgressDto>() {
@Override
public Object render(ProgressDto model, String property, ColumnData config, int rowIndex, int colIndex,
ListStore<ProgressDto> store, Grid<ProgressDto> grid) {
return rowIndex + 1;
}
});
column = cm.getColumn(2);
column.setRenderer(createTextFieldRenderer(column.getWidth() - PADDING_2));
column.setEditor(new CellEditor(createTextField(MAX_LENGTH_3)));
column = cm.getColumn(3);
column.setRenderer(createDateRenderer(column.getWidth() - PADDING_2));
column = cm.getColumn(4);
column.setRenderer(createNumberRenderer(column.getWidth() - PADDING_2));
column.setEditor(new CellEditor(createNumberField(null)));
column = cm.getColumn(5);
column.setNumberFormat(NumberFormat.getFormat(NUMBER_FORMAT));
column = cm.getColumn(6);
column.setRenderer(createNumberRenderer(column.getWidth() - PADDING_2));
column.setEditor(new CellEditor(createNumberField(null)));
column = cm.getColumn(7);
column.setNumberFormat(NumberFormat.getFormat(NUMBER_FORMAT));
cm.addHeaderGroup(0, 4, new HeaderGroupConfig(messages.avancement(), 1, 2));
cm.addHeaderGroup(0, 6, new HeaderGroupConfig(messages.retenues(), 1, 2));
ListStore<ProgressDto> store = new ListStore<ProgressDto>();