Examples of Popup


Examples of Focus.Popup

                // ------------------
                else if (qq_currentEvent.isEvent(DataField_AfterFocusGain_getqq_b)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        new Popup().display();
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
View Full Code Here

Examples of IHM.Popup

                changeTurn();
            }
          }
          if (someoneWin() == J1) { // J1 won
            endTheGame();
            new Popup("Joueur 1 a gagn� !!!");
          } else if (someoneWin() == J2) { // J2 won
            endTheGame();
            new Popup("Joueur 2 a gagn� !!!");
          }
          return validAction;
        } else { // No more token, change turn
          changeTurn();
          return false;
View Full Code Here

Examples of SUN_78.Popup

                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        int reason = ((ParameterHolder)qq_currentEvent.getParameter("reason")).getInt();
                        if (reason != Constants.FC_MOUSECLICK) {
                            new Popup().display();
                        }
                        UIutils.processGUIActions();
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // --------------------
                // <myFamily.son>.click
                // --------------------
                else if (qq_currentEvent.isEvent(DataField_Click_getqq_myFamily_son)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        new Popup().display();
                        UIutils.processGUIActions();
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ----------------------------------
                // <myFamily.daughter>.AfterFocusGain
                // ----------------------------------
                else if (qq_currentEvent.isEvent(DataField_AfterFocusGain_getqq_myFamily_daughter)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        int reason = ((ParameterHolder)qq_currentEvent.getParameter("reason")).getInt();
                        if (reason != Constants.FC_MOUSECLICK) {
                            new Popup().display();
                        }
                        UIutils.processGUIActions();
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -------------------------
                // <myFamily.daughter>.click
                // -------------------------
                else if (qq_currentEvent.isEvent(DataField_Click_getqq_myFamily_daughter)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        new Popup().display();
                        UIutils.processGUIActions();
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -------------
                // task.Shutdown
                // -------------
                else if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        break;
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -------------------
                // <doSomething>.click
                // -------------------
                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_doSomething)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        new Popup().display();
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
View Full Code Here

Examples of com.alkacon.geranium.client.ui.Popup

     */
    @UiHandler("m_editButton")
    void showEditPopup(ClickEvent clickEvent) {

        m_editButton.clearHoverState();
        m_popup = new Popup(m_title, -1);
        m_popup.setModal(true);
        m_popup.setAutoHideEnabled(true);
        m_popup.removePadding();
        m_popup.addCloseHandler(new CloseHandler<PopupPanel>() {

View Full Code Here

Examples of com.google.collide.client.ui.popup.Popup

      @Override
      public void handleEvent(Event evt) {
        FileTreeSection files = testFileTree();
        generated.<JsElement>cast().appendChild(files.getView().getElement());
        files.getTree().renderTree(0);
        Popup popup = Popup.create(resources);
        popup.addPartner(generated.<JsElement>cast());
        popup.setContentElement(files.getView().getElement());
        popup.show(new PositionerBuilder()
          .setVerticalAlign(VerticalAlign.BOTTOM)
          .setPosition(Position.NO_OVERLAP)
          .buildAnchorPositioner(generated.<JsElement>cast()));
      }
    }, true);
View Full Code Here

Examples of javafx.stage.Popup

            final Text infoText = new Text(label.getText());
            infoText.setWrappingWidth(imgView.getImage().getWidth());
            info.setPrefHeight(imgView.getImage().getHeight() / 7);
            info.getChildren().add(infoText);
            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);
            popup.setY(getScene().getWindow().getY() + getScene().getWindow().getHeight() / 2 - image.getHeight() / 2);
            popup.show(getScene().getWindow());
          }
        });
        return zoomButton;
      }
      return null;
View Full Code Here

Examples of javafx.stage.Popup

  private Popup popup;
  final DatePicker datePicker;
 
  public SimpleCalendar() {
    popup = new Popup();
    popup.setAutoHide(true);
    popup.setAutoFix(true);
    popup.setHideOnEscape(true);

    datePicker = new DatePicker();
View Full Code Here

Examples of javafx.stage.Popup

   *            button will be added)
   * @return the {@linkplain Popup}
   */
  public static Popup alert(final double width, final double height,
      final String headerText, final KEY closeButtonKey, final Node... children) {
    final Popup alert = new Popup();
    alert.setAutoFix(true);
    alert.setAutoHide(false);
    alert.setHideOnEscape(false);
    if (headerText != null && !headerText.isEmpty()) {
      alert.getContent().add(new Label(headerText));
    }
    if (children != null && children.length > 0) {
      alert.getContent().addAll(children);
    } else {
      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

Examples of javafx.stage.Popup

            }
        });
    }

    protected void createPopup() {
        popup = new Popup();
        popup.getContent().add(fxForm);
        popup.setAutoHide(true);
        popup.setHideOnEscape(true);
        popup.setAutoFix(true);
        popup.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
View Full Code Here

Examples of javafx.stage.Popup

       
        stage.initStyle(StageStyle.TRANSPARENT);
        stage.setScene(scene);
        stage.show();
       
        Popup popup = new Popup();
        popup.getContent().add(root);
        popup.show(stage);

        //Place the window to an optimal position
        Utils.adjustLocation(popup);
    }
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.