Package javafx.event

Examples of javafx.event.ActionEvent


                                    case YES:
//                                logger.info("Clicked Yes");

                                        try {
                                            Main.postConsoleMessage("This is going to take about 30 seconds.... Please Wait... Watch the flashies....");
                                            handleUpdateFirmware(new ActionEvent());

                                        } catch (Exception ex) {
                                            Main.postConsoleMessage("Error in updating firmware.");
                                        }
                                        break;
View Full Code Here


        tlrv.setController(controller);
        Platform.runLater(() -> {
            jFXVizPanel.getScene().addEventFilter(KeyEvent.KEY_PRESSED, (
                                                  KeyEvent event) -> {
                                                      if (new KeyCodeCombination(KeyCode.LEFT, KeyCodeCombination.ALT_DOWN).match(event)) {
                                                          new Back(controller).handle(new ActionEvent());
                                                      } else if (new KeyCodeCombination(KeyCode.BACK_SPACE).match(event)) {
                                                          new Back(controller).handle(new ActionEvent());
                                                      } else if (new KeyCodeCombination(KeyCode.RIGHT, KeyCodeCombination.ALT_DOWN).match(event)) {
                                                          new Forward(controller).handle(new ActionEvent());
                                                      } else if (new KeyCodeCombination(KeyCode.BACK_SPACE, KeyCodeCombination.SHIFT_DOWN).match(event)) {
                                                          new Forward(controller).handle(new ActionEvent());
                                                      }
                                                  });
            controller.getViewMode().addListener((Observable observable) -> {
                if (controller.getViewMode().get().equals(VisualizationMode.COUNTS)) {
                    tabPane.getSelectionModel().select(filterTab);
View Full Code Here

      handler = ((ButtonBase) node).getOnAction();
    } else if (node instanceof TextField) {
      handler = ((TextField) node).getOnAction();
    }
    if (handler != null) {
      handler.handle(new ActionEvent(node, null));
      return true;
    } else if (node instanceof ButtonBase) {
      ((ButtonBase) node).fire();
      return true;
    }
View Full Code Here

TOP

Related Classes of javafx.event.ActionEvent

Copyright © 2018 www.massapicom. 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.