Example #1
0
  @Override
  public void show() {
    if (!((JFXDatePicker) getSkinnable()).isOverLay()) super.show();
    getPopupContent();
    jfxDatePickerContent.init();
    jfxDatePickerContent.clearFocus();

    // show overlay
    if (((JFXDatePicker) getSkinnable()).isOverLay()) {
      if (dialog == null) {
        dialog =
            new JFXDialog(
                (Pane) getSkinnable().getScene().getRoot(),
                jfxDatePickerContent,
                DialogTransition.CENTER,
                true);
        arrowButton.setOnMouseClicked(
            (click) -> {
              if (((JFXDatePicker) getSkinnable()).isOverLay())
                dialog.show((Pane) getSkinnable().getScene().getRoot());
            });
      }
    }
  }
Example #2
0
 @Override
 public StyleableProperty<DialogTransition> getStyleableProperty(JFXDialog control) {
   return control.transitionTypeProperty();
 }