Package jfxtras.scene.control

Examples of jfxtras.scene.control.LocalDateTextField


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

TOP

Related Classes of jfxtras.scene.control.LocalDateTextField

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.