*/
@Override
public CalendarTimeTextField build()
{
Locale lLocale = (iLocale == null ? Locale.getDefault() : iLocale);
CalendarTimeTextField lCalendarTimeTextField = new CalendarTimeTextField();
if (iDateFormat != null) lCalendarTimeTextField.setDateFormat(new SimpleDateFormat(iDateFormat, lLocale));
if (iLocale != null) lCalendarTimeTextField.setLocale(iLocale);
if (iPromptText != null) lCalendarTimeTextField.setPromptText(iPromptText);
if (iDateFormats != null)
{
ObservableList<DateFormat> lDateFormats = FXCollections.observableArrayList();
for (String lPart : iDateFormats)
{
lDateFormats.add( new SimpleDateFormat(lPart.trim(), lLocale) );
}
lCalendarTimeTextField.setDateFormats(lDateFormats);
}
applyCommonProperties(lCalendarTimeTextField);
return lCalendarTimeTextField;
}