Package jfxtras.scene.control

Examples of jfxtras.scene.control.CalendarTextField.calendarProperty()


      }
    });
   
    HBox lHBox = new HBox();
    CalendarTextField lCalendarTextField = new CalendarTextField();
    lCalendarTextField.calendarProperty().bindBidirectional(lAgenda.displayedCalendar());   
        lHBox.getChildren().add(lCalendarTextField);
       
        // create scene
        BorderPane lBorderPane = new BorderPane();
        lBorderPane.setCenter(lAgenda);
View Full Code Here


    // end
    final CalendarTextField lEndCalendarTextField = new CalendarTextField().withDateFormat(SimpleDateFormat.getDateTimeInstance());
    lEndCalendarTextField.setLocale(getSkinnable().getLocale());
    lEndCalendarTextField.setCalendar(abstractAppointmentPane.appointment.getEndTime());
    lMenuVBox.getChildren().add(lEndCalendarTextField);
    lEndCalendarTextField.calendarProperty().addListener(new ChangeListener<Calendar>()
    {
      @Override
      public void changed(ObservableValue<? extends Calendar> arg0, Calendar oldValue, Calendar newValue)
      {
        abstractAppointmentPane.appointment.setEndTime(newValue);
View Full Code Here

      // POJO binding magic...
      personPA.bindBidirectional(path, tf.textProperty());
      ctrl = tf;
    } else if (controlType == CalendarTextField.class) {
      final CalendarTextField ctf = new CalendarTextField();
      personPA.bindBidirectional(path, ctf.calendarProperty(),
          Calendar.class);
      ctrl = ctf;
    } else if (controlType == ListSpinner.class) {
      final ListSpinner<T> ls = new ListSpinner<>(choices)
          .withCyclic(true);
View Full Code Here

        bigDecimalLabel.numberProperty().bind(defaultSpinner.numberProperty());
        bigDecimalLabel.formatProperty().bind(numberFormatProperty);
        root.addRow(rowIndex++, new Label("BigDecimalLabel"), bigDecimalLabel);

        CalendarLabel calendarLabel = new CalendarLabel();
        calendarLabel.valueProperty().bind(calendarTextField.calendarProperty());
        calendarLabel.formatProperty().bind(dateFormatProperty);
        root.addRow(rowIndex++, new Label("CalendarLabel"), calendarLabel);
//        defaultSpinner.requestFocus();
//        calendarTextField.requestFocus();
        Platform.runLater(new Runnable() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.