Search in sources :

Example 1 with TreeGridCellRenderer

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);
}
Also used : TreeGridCellRenderer(com.extjs.gxt.ui.client.widget.treegrid.TreeGridCellRenderer) ArrayList(java.util.ArrayList) TextField(com.extjs.gxt.ui.client.widget.form.TextField)

Aggregations

TextField (com.extjs.gxt.ui.client.widget.form.TextField)1 TreeGridCellRenderer (com.extjs.gxt.ui.client.widget.treegrid.TreeGridCellRenderer)1 ArrayList (java.util.ArrayList)1