use of com.haulmont.cuba.gui.components.data.DataAwareComponentsTools in project cuba by cuba-platform.
the class WebDatePicker method valueBindingConnected.
@Override
protected void valueBindingConnected(ValueSource<V> valueSource) {
super.valueBindingConnected(valueSource);
if (valueSource instanceof EntityValueSource) {
EntityValueSource entityValueSource = (EntityValueSource) valueSource;
DataAwareComponentsTools dataAwareComponentsTools = beanLocator.get(DataAwareComponentsTools.class);
dataAwareComponentsTools.setupDateRange(this, entityValueSource);
}
}
use of com.haulmont.cuba.gui.components.data.DataAwareComponentsTools in project cuba by cuba-platform.
the class WebCheckBoxGroup method valueBindingConnected.
@Override
protected void valueBindingConnected(ValueSource<Collection<V>> valueSource) {
super.valueBindingConnected(valueSource);
if (valueSource instanceof EntityValueSource) {
DataAwareComponentsTools dataAwareComponentsTools = beanLocator.get(DataAwareComponentsTools.class);
dataAwareComponentsTools.setupOptions(this, (EntityValueSource) valueSource);
}
}
use of com.haulmont.cuba.gui.components.data.DataAwareComponentsTools in project cuba by cuba-platform.
the class WebAbstractTextArea method valueBindingConnected.
@Override
protected void valueBindingConnected(ValueSource<V> valueSource) {
super.valueBindingConnected(valueSource);
if (valueSource instanceof EntityValueSource) {
DataAwareComponentsTools dataAwareComponentsTools = beanLocator.get(DataAwareComponentsTools.class);
EntityValueSource entityValueSource = (EntityValueSource) valueSource;
dataAwareComponentsTools.setupCaseConversion(this, entityValueSource);
dataAwareComponentsTools.setupMaxLength(this, entityValueSource);
}
}
use of com.haulmont.cuba.gui.components.data.DataAwareComponentsTools in project cuba by cuba-platform.
the class WebRadioButtonGroup method valueBindingConnected.
@Override
protected void valueBindingConnected(ValueSource<V> valueSource) {
super.valueBindingConnected(valueSource);
if (valueSource instanceof EntityValueSource) {
DataAwareComponentsTools dataAwareComponentsTools = beanLocator.get(DataAwareComponentsTools.class);
dataAwareComponentsTools.setupOptions(this, (EntityValueSource) valueSource);
}
}
use of com.haulmont.cuba.gui.components.data.DataAwareComponentsTools in project cuba by cuba-platform.
the class WebPasswordField method valueBindingConnected.
@Override
protected void valueBindingConnected(ValueSource<String> valueSource) {
super.valueBindingConnected(valueSource);
if (valueSource instanceof EntityValueSource) {
DataAwareComponentsTools dataAwareComponentsTools = beanLocator.get(DataAwareComponentsTools.class);
EntityValueSource entityValueSource = (EntityValueSource) valueSource;
dataAwareComponentsTools.setupMaxLength(this, entityValueSource);
}
}
Aggregations