Package jfxtras.scene.control

Examples of jfxtras.scene.control.LocalTimeTextField


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

TOP

Related Classes of jfxtras.scene.control.LocalTimeTextField

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.