Search in sources :

Example 1 with DateTimeTransformations

use of com.haulmont.cuba.core.global.DateTimeTransformations 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 DateTimeTransformations

use of com.haulmont.cuba.core.global.DateTimeTransformations in project cuba by cuba-platform.

the class WebDatePickerDsTest method autowireUiComponent.

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

Example 3 with DateTimeTransformations

use of com.haulmont.cuba.core.global.DateTimeTransformations 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)3 WebDateField (com.haulmont.cuba.web.gui.components.WebDateField)2 WebDatePicker (com.haulmont.cuba.web.gui.components.WebDatePicker)1