Package javafx.stage

Examples of javafx.stage.Popup.hide()


            frame.getChildren().addAll(imgView, info);
            final Popup popup = new Popup();
            popup.addEventHandler(MouseEvent.MOUSE_CLICKED, new EventHandler<MouseEvent>() {
              @Override
              public void handle(MouseEvent event) {
                popup.hide();
              }
            });
            popup.setAutoHide(true);
            popup.getContent().add(frame);
            popup.setX(getScene().getWindow().getX() + getScene().getWindow().getWidth() / 2 - image.getWidth() / 2);
View Full Code Here


      final KEY cbk = closeButtonKey != null ? closeButtonKey : KEY.CLOSE;
      final Button cb = ButtonBuilder.create().text(RS.rbLabel(cbk)).build();
      cb.setOnMouseClicked(new EventHandler<MouseEvent>() {
        @Override
        public void handle(final MouseEvent event) {
          alert.hide();
        }
      });
    }
    alert.sizeToScene();
    return alert;
View Full Code Here

        lButton.setOnAction(new EventHandler<ActionEvent>()
        {
          @Override
          public void handle(ActionEvent evt)
          {
            lPopup.hide();
            appointment.setSummary("custom popup");
            lAgenda.refresh();
          }
        });
        lPopup.getContent().add(lButton);
View Full Code Here

      lImageView.setPickOnBounds(true);
      lImageView.setOnMouseClicked(new EventHandler<MouseEvent>()
      {
        @Override public void handle(MouseEvent evt)
        {
          lPopup.hide();
        }
      });
      lBorderPane.setRight(lImageView);
    }
   
View Full Code Here

      lImageView.setPickOnBounds(true);
      lImageView.setOnMouseClicked(new EventHandler<MouseEvent>()
      {
        @Override public void handle(MouseEvent evt)
        {
          lPopup.hide();
          getSkinnable().appointments().remove(abstractAppointmentPane.appointment);
          // refresh is done via the collection events
        }
      });
      Tooltip.install(lImageView, new Tooltip("Delete")); // TODO: internationalize
View Full Code Here

        // assign appointment group
        abstractAppointmentPane.appointment.setAppointmentGroup(lAppointmentGroupFinal);

        // refresh is done upon popup close
        lPopup.hide();
      });
    }
   
    // show it just below the menu icon
    lPopup.show(abstractAppointmentPane, NodeUtil.screenX(abstractAppointmentPane), NodeUtil.screenY(abstractAppointmentPane.menuIcon) + abstractAppointmentPane.menuIcon.getHeight());
View Full Code Here

      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();
      lCloseIconImageView.getStyleClass().addAll("close-icon");
View Full Code Here

     
      ImageView lCloseIconImageView = new ImageViewButton();
      lCloseIconImageView.getStyleClass().addAll("close-icon");
      lCloseIconImageView.setPickOnBounds(true);
      lCloseIconImageView.setOnMouseClicked( (mouseEvent) ->  {
        lPopup.hide();
      });
      lVBox.add(lCloseIconImageView);
    }
   
    // if a value is selected in date mode, immediately close the popup
View Full Code Here

    }
   
    // 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();
      }
    });

    // when the popup is hidden
    lPopup.setOnHiding( (windowEvent) -> {
View Full Code Here

      }
    };
    final EventHandler<MouseEvent> exitedEvent = new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent e) {
        popUp.hide();
      }
    };
    final EventHandler<MouseEvent> movedEvent = new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent e) {
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.