class DateFieldBindingDefinition implements BindingDefinition {

    @Override
    public Component newComponent() {
        DateField dateField = ComponentFactory.newDateField();
        if (StringUtils.isNotBlank(uiDateField.dateFormat())) {
            dateField.setDateFormat(uiDateField.dateFormat());
        } else {
            Locale locale = UiFramework.getLocale();
            dateField.setDateFormat(DateFormats.getPattern(locale));
        }
        return dateField;
    }

    public  DateFieldBindingDefinition(UIDateField uiDateField);

}