Search in sources :

Example 16 with DynamicDataRow

use of org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicDataRow in project drools-wb by kiegroup.

the class TemplateDataCellValueFactory method makeUIRowData.

/**
 * Construct a new row of data for the MergableGridWidget
 *
 * @return
 */
@Override
public DynamicDataRow makeUIRowData() {
    DynamicDataRow data = new DynamicDataRow();
    InterpolationVariable[] variables = model.getInterpolationVariablesList();
    for (InterpolationVariable var : variables) {
        TemplateDataColumn column = makeModelColumn(var);
        String dcv = makeModelCellValue(column);
        CellValue<? extends Comparable<?>> cell = convertModelCellValue(column, dcv);
        data.add(cell);
    }
    return data;
}
Also used : InterpolationVariable(org.drools.workbench.models.datamodel.rule.InterpolationVariable) DynamicDataRow(org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicDataRow)

Aggregations

DynamicDataRow (org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicDataRow)16 GroupedDynamicDataRow (org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.GroupedDynamicDataRow)9 TableRowElement (com.google.gwt.dom.client.TableRowElement)6 Coordinate (org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.Coordinate)4 TableCellElement (com.google.gwt.dom.client.TableCellElement)3 DivElement (com.google.gwt.dom.client.DivElement)1 TableSectionElement (com.google.gwt.dom.client.TableSectionElement)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 InterpolationVariable (org.drools.workbench.models.datamodel.rule.InterpolationVariable)1 ToggleMergingEvent (org.kie.workbench.common.widgets.decoratedgrid.client.widget.events.ToggleMergingEvent)1 UpdateModelEvent (org.kie.workbench.common.widgets.decoratedgrid.client.widget.events.UpdateModelEvent)1