use of com.haulmont.cuba.gui.components.TreeDataGrid in project jmix by jmix-framework.
the class CubaTreeDataGridLoader method setupDataContainer.
@Override
protected void setupDataContainer(DataGridDataHolder holder) {
if (holder instanceof CubaTreeDataGridDataHolder) {
CollectionDatasource datasource = ((CubaTreeDataGridDataHolder) holder).getDatasource();
if (datasource == null) {
return;
}
((TreeDataGrid) resultComponent).setDatasource(datasource);
DynAttrEmbeddingStrategies embeddingStrategies = applicationContext.getBean(DynAttrEmbeddingStrategies.class);
embeddingStrategies.embedAttributes(resultComponent, getComponentContext().getFrame());
} else {
super.setupDataContainer(holder);
}
}
Aggregations