columns.get(2).setEditor(new CellEditor(createTextField(MAX_LENGTH_1)));
columns.get(4).setRenderer(textFieldRenderer);
columns.get(4).setEditor(new CellEditor(new TextField<Object>()));
ColumnConfig commentColumn = columns.get(5);
GridCellRenderer<GestionDto> textAreaRenderer = createLockableTextAreaRenderer(commentColumn.getWidth() - PADDING, 33);
//Comment column
commentColumn.setRenderer(textAreaRenderer);
CellEditor editor2 = new TextAreaEditor(new TextArea());
commentColumn.setEditor(editor2);
editor2.setCompleteOnEnter(false);
columns.get(16).setRenderer(textFieldRenderer);
setNumberFormatColumns(columns);
columns.get(3).setRenderer(comboBoxRenderer);
final ListStore<SimpleDto> statusStore = new ListStore<SimpleDto>();
ClientStatusServiceAsync statusService = ClientStatusServiceAsync.Util.getInstance();
statusService.findAll(new AsyncCallbackWithErrorResolution<List<SimpleDto>>() {
@Override
public void onSuccess(final List<SimpleDto> results) {
statusStore.add(results);
}
});
ComboBox<SimpleDto> combobox1 = new CustomComboBox<SimpleDto>();
combobox1.setStore(statusStore);
combobox1.setTemplate(ComboToolTipTemplate.getStatutTemplate());
columns.get(3).setEditor(new CellEditor(combobox1));
final ListStore<SimpleDto> store2 = new ListStore<SimpleDto>();
ClientRefTypeMchAvServiceAsync service = ClientRefTypeMchAvServiceAsync.Util.getInstance();
service.findAll(new AsyncCallbackWithErrorResolution<List<SimpleDto>>() {
@Override
public void onSuccess(final List<SimpleDto> results) {
store2.add(results);
}
});
ComboBox<SimpleDto> combobox2 = new CustomComboBox<SimpleDto>();
combobox2.setStore(store2);
columns.get(7).setEditor(new CellEditor(combobox2));
columns.get(7).setRenderer(comboBoxRenderer);
columns.get(15).setRenderer(comboBoxRenderer);
final ListStore<SimpleDto> store3 = new ListStore<SimpleDto>();
ClientTypeServiceAsync typeService = ClientTypeServiceAsync.Util.getInstance();
typeService.findAll(new AsyncCallbackWithErrorResolution<List<SimpleDto>>() {
@Override
public void onSuccess(final List<SimpleDto> results) {
store3.add(results);
}
});
ComboBox<SimpleDto> combobox3 = new CustomComboBox<SimpleDto>();
combobox3.setStore(store3);
columns.get(15).setEditor(new CellEditor(combobox3));
ColumnModel cm = new ColumnModel(columns);
cm.addHeaderGroup(0, 7, new HeaderGroupConfig(messages.traite().toUpperCase(), 1, 2));
cm.addHeaderGroup(0, 9, new HeaderGroupConfig(messages.traiter().toUpperCase(), 1, 2));
cm.addHeaderGroup(0, 15, new HeaderGroupConfig(messages.budgetConforme().toUpperCase(), 1, 3));
cm.addHeaderGroup(1, 7, new HeaderGroupConfig(messages.marcheAndAvenants(), 1, 2));
cm.addAggregationRow(totalSummary);
ColumnConfig label2Col = cm.getColumnById(GestionDto.LABEL2);
label2Col.setEditor(new CellEditor(createTextField(MAX_LENGTH_1)));
GroupingStore<GestionDto> store = new GroupingStore<GestionDto>();
store.groupBy(GestionDto.MARCHE);
GroupSummaryView view = new GroupSummaryView() {