Search in sources :

Example 1 with TwinColumn

use of com.haulmont.cuba.gui.components.TwinColumn in project cuba by cuba-platform.

the class TwinColumnLoader method loadDatasource.

@Override
protected void loadDatasource(DatasourceComponent component, Element element) {
    String datasource = element.attributeValue("optionsDatasource");
    if (!StringUtils.isEmpty(datasource)) {
        Datasource ds = context.getDsContext().get(datasource);
        ((TwinColumn) component).setOptionsDatasource((CollectionDatasource) ds);
    }
    super.loadDatasource(component, element);
}
Also used : Datasource(com.haulmont.cuba.gui.data.Datasource) CollectionDatasource(com.haulmont.cuba.gui.data.CollectionDatasource) TwinColumn(com.haulmont.cuba.gui.components.TwinColumn)

Aggregations

TwinColumn (com.haulmont.cuba.gui.components.TwinColumn)1 CollectionDatasource (com.haulmont.cuba.gui.data.CollectionDatasource)1 Datasource (com.haulmont.cuba.gui.data.Datasource)1