Search in sources :

Example 1 with WebDateField

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

the class WebDateFieldTest method autowireUiComponent.

@Override
protected void autowireUiComponent(Component component) {
    super.autowireUiComponent(component);
    WebDateField dateField = (WebDateField) component;
    dateField.setBeanLocator(beanLocator);
    dateField.setDateTimeTransformations(new DateTimeTransformations());
}
Also used : DateTimeTransformations(com.haulmont.cuba.core.global.DateTimeTransformations) WebDateField(com.haulmont.cuba.web.gui.components.WebDateField)

Example 2 with WebDateField

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

the class WebDateFieldDsTest method autowireUiComponent.

@Override
protected void autowireUiComponent(Component component) {
    super.autowireUiComponent(component);
    WebDateField dateField = (WebDateField) component;
    dateField.setBeanLocator(beanLocator);
    dateField.setDateTimeTransformations(new DateTimeTransformations());
}
Also used : DateTimeTransformations(com.haulmont.cuba.core.global.DateTimeTransformations) WebDateField(com.haulmont.cuba.web.gui.components.WebDateField)

Aggregations

DateTimeTransformations (com.haulmont.cuba.core.global.DateTimeTransformations)2 WebDateField (com.haulmont.cuba.web.gui.components.WebDateField)2