*/
@Override
public LocalDateTimeTextField build()
{
Locale lLocale = (iLocale == null ? Locale.getDefault() : iLocale);
LocalDateTimeTextField lLocalDateTimeTextField = new LocalDateTimeTextField();
if (iDateTimeFormatter != null) lLocalDateTimeTextField.setDateTimeFormatter( DateTimeFormatter.ofPattern(iDateTimeFormatter).withLocale(lLocale));
if (iLocale != null) lLocalDateTimeTextField.setLocale(iLocale);
if (iPromptText != null) lLocalDateTimeTextField.setPromptText(iPromptText);
if (iDateTimeFormatters != null)
{
ObservableList<DateTimeFormatter> lDateTimeFormatters = FXCollections.observableArrayList();
for (String lPart : iDateTimeFormatters)
{
lDateTimeFormatters.add( DateTimeFormatter.ofPattern(lPart.trim()).withLocale(lLocale) );
}
lLocalDateTimeTextField.setDateTimeFormatters(lDateTimeFormatters);
}
applyCommonProperties(lLocalDateTimeTextField);
return lLocalDateTimeTextField;
}