use of com.extjs.gxt.ui.client.widget.treegrid.TreeGridCellRenderer in project activityinfo by bedatadriven.
the class TargetIndicatorView method createColumnModel.
private ColumnModel createColumnModel() {
List<ColumnConfig> columns = new ArrayList<>();
ColumnConfig nameColumn = new ColumnConfig("name", I18N.CONSTANTS.indicator(), 250);
nameColumn.setRenderer(new TreeGridCellRenderer());
columns.add(nameColumn);
TextField<String> valueField = new TextField<String>();
valueField.setAllowBlank(true);
ColumnConfig valueColumn = new ColumnConfig("value", I18N.CONSTANTS.targetValue(), 150);
valueColumn.setEditor(new CellEditor(valueField));
valueColumn.setRenderer(new TargetValueCellRenderer());
columns.add(valueColumn);
return new ColumnModel(columns);
}
Aggregations