use of com.haulmont.cuba.gui.components.OptionsField in project cuba by cuba-platform.
the class AbstractOptionsBaseLoader method loadDatasource.
@Override
protected void loadDatasource(DatasourceComponent component, Element element) {
String multiselect = element.attributeValue("multiselect");
if (StringUtils.isNotEmpty(multiselect)) {
((OptionsField) component).setMultiSelect(Boolean.parseBoolean(multiselect));
}
String datasource = element.attributeValue("optionsDatasource");
if (!StringUtils.isEmpty(datasource)) {
Datasource ds = context.getDsContext().get(datasource);
((T) component).setOptionsDatasource((CollectionDatasource) ds);
}
super.loadDatasource(component, element);
}
Aggregations