use of com.haulmont.cuba.web.widgets.data.util.NullTreeTableContainer in project cuba by cuba-platform.
the class CubaTreeTable method setContainerDataSource.
@Override
public void setContainerDataSource(Container newDataSource) {
disableContentRefreshing();
if (newDataSource == null || newDataSource instanceof IndexedContainer) {
// if it is just created
newDataSource = new NullTreeTableContainer(new HierarchicalContainer());
} else if (!(newDataSource instanceof Container.Hierarchical)) {
throw new IllegalArgumentException("CubaTreeTable supports only Container.Hierarchical");
}
super.setContainerDataSource(newDataSource);
}
Aggregations