Package jfxtras.scene.control

Examples of jfxtras.scene.control.CalendarTimeTextField


   * construct the nodes
   */
  private void createNodes()
  {
    // setup the grid so all weekday togglebuttons will grow, but the weeknumbers do not
    calendarTimeTextField = new CalendarTimeTextField().withDateFormat(SimpleDateFormat.getTimeInstance(DateFormat.LONG, localeObjectProperty.get())); //getSkinnable().getLocale())); // TODO this is not right
    getChildren().add(calendarTimeTextField);
   
    // setup CSS
        getSkinnable().getStyleClass().add(this.getClass().getSimpleName()); // always add self as style class, because CSS should relate to the skin not the control
  }
View Full Code Here


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

TOP

Related Classes of jfxtras.scene.control.CalendarTimeTextField

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.