Examples of calendarProperty()


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

    // create calendar picker
    CalendarPicker lCalendarPicker = new CalendarPicker();
    lCalendarPicker.setCalendar(Calendar.getInstance()); // set to today
   
    // bind picker to agenda
    lAgenda.displayedCalendar().bind(lCalendarPicker.calendarProperty());
   
    // image
    final ImageView lImageView = new ImageView();
    lImageView.setId("TheImage");
       
View Full Code Here

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

    // create a picker
    CalendarPicker calendarPicker = new CalendarPicker();
    calendarPicker.setMode(CalendarPicker.Mode.SINGLE);
    calendarPicker.localeProperty().set(getSkinnable().localeProperty().get());
    calendarPicker.allowNullProperty().set(getSkinnable().allowNullProperty().get());
    calendarPicker.calendarProperty().set(getSkinnable().calendarProperty().get());
    calendarPicker.disabledCalendars().addAll(getSkinnable().disabledCalendars());
    calendarPicker.highlightedCalendars().addAll(getSkinnable().highlightedCalendars());
    calendarPicker.setCalendarRangeCallback(new Callback<CalendarRange,Void>() {
      @Override
      public Void call(CalendarRange calendarRange) {
View Full Code Here

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

     
      ImageView lAcceptIconImageView = new ImageViewButton();
      lAcceptIconImageView.getStyleClass().addAll("accept-icon");
      lAcceptIconImageView.setPickOnBounds(true);
      lAcceptIconImageView.setOnMouseClicked( (mouseEvent) ->  {
        getSkinnable().calendarProperty().set(calendarPicker.calendarProperty().get());
        lPopup.hide();
      });
      lVBox.add(lAcceptIconImageView);
     
      ImageView lCloseIconImageView = new ImageViewButton();
View Full Code Here

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

      });
      lVBox.add(lCloseIconImageView);
    }
   
    // if a value is selected in date mode, immediately close the popup
    calendarPicker.calendarProperty().addListener( (observable) -> {
      if (lPopup != null &&  getSkinnable().getShowTime() == false && lPopup.isShowing()) {
        lPopup.hide();
      }
    });
View Full Code Here

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

    // when the popup is hidden
    lPopup.setOnHiding( (windowEvent) -> {
      // and time is not shown, the value must be set into the textfield
      if ( getSkinnable().getShowTime() == false) {
        getSkinnable().calendarProperty().set(calendarPicker.calendarProperty().get());
      }
      // but at least the textfield must be enabled again
      textField.setDisable(false);
    });
   
View Full Code Here

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

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

    // 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

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

      // 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

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

        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.