Package jfxtras.scene.control

Examples of jfxtras.scene.control.LocalDateTimeTextField


   */
  @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;
  }
View Full Code Here

TOP

Related Classes of jfxtras.scene.control.LocalDateTimeTextField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.