Search in sources :

Example 1 with SetInternalTemplateDataModelEvent

use of org.drools.workbench.screens.guided.template.client.editor.events.SetInternalTemplateDataModelEvent in project drools-wb by kiegroup.

the class AbstractDecoratedTemplateDataGridWidget method onSetModel.

public void onSetModel(SetModelEvent<TemplateModel> event) {
    DynamicData data = new DynamicData();
    TemplateModel model = event.getModel();
    List<DynamicColumn<TemplateDataColumn>> columns = new ArrayList<DynamicColumn<TemplateDataColumn>>();
    setupInternalModel(model, columns, data);
    // Raise event setting data and columns for UI components
    SetInternalTemplateDataModelEvent sime = new SetInternalTemplateDataModelEvent(model, data, columns);
    eventBus.fireEvent(sime);
}
Also used : SetInternalTemplateDataModelEvent(org.drools.workbench.screens.guided.template.client.editor.events.SetInternalTemplateDataModelEvent) ArrayList(java.util.ArrayList) TemplateModel(org.drools.workbench.models.guided.template.shared.TemplateModel) DynamicColumn(org.kie.workbench.common.widgets.decoratedgrid.client.widget.DynamicColumn) DynamicData(org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicData)

Aggregations

ArrayList (java.util.ArrayList)1 TemplateModel (org.drools.workbench.models.guided.template.shared.TemplateModel)1 SetInternalTemplateDataModelEvent (org.drools.workbench.screens.guided.template.client.editor.events.SetInternalTemplateDataModelEvent)1 DynamicColumn (org.kie.workbench.common.widgets.decoratedgrid.client.widget.DynamicColumn)1 DynamicData (org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.DynamicData)1