Package javafx.scene.control

Examples of javafx.scene.control.SeparatorMenuItem


    return pane;
  }


  private <M> void fillContextMenu(final TableView<M> tableView, final MenuItem copyMenuItem, MenuItem copyCellMenuItem) {
    tableView.getContextMenu().getItems().add(new SeparatorMenuItem());
    tableView.getContextMenu().getItems().add(copyMenuItem);
    tableView.getContextMenu().getItems().add(copyCellMenuItem);
  }
View Full Code Here


        Menu menuFile = new Menu("File");
        menuFile.getItems().add(openItem);
        menuFile.getItems().add(saveItem);
        menuFile.getItems().add(saveAsItem);
        menuFile.getItems().add(new SeparatorMenuItem());
        menuFile.getItems().add(exitItem);

        Menu menuEdit = new Menu("Edit");
        Menu menuView = new Menu("View");
View Full Code Here

        Menu menuFile = new Menu("File");
        menuFile.getItems().add(openItem);
        menuFile.getItems().add(saveItem);
        menuFile.getItems().add(saveAsItem);
        menuFile.getItems().add(new SeparatorMenuItem());
        menuFile.getItems().add(exitItem);

        Menu menuEdit = new Menu("Edit");
        Menu menuView = new Menu("View");
View Full Code Here

        Menu menuFile = new Menu("File");
        menuFile.getItems().add(openItem);
        menuFile.getItems().add(saveItem);
        menuFile.getItems().add(saveAsItem);
        menuFile.getItems().add(new SeparatorMenuItem());
        menuFile.getItems().add(exitItem);

        Menu menuEdit = new Menu("Edit");
        Menu menuView = new Menu("View");
View Full Code Here

      }
    });
       
    textArea.setContextMenu(new ContextMenu(copySelected,
                        selectAll,
                        new SeparatorMenuItem(),
                        clearConsole));
   
    // anchor the text area so it resizes automatically
    AnchorPane.setTopAnchor(textArea, Constants.RESIZE_MARGIN);
    AnchorPane.setBottomAnchor(textArea, 0.0);
View Full Code Here

        });
        MenuItem updateAppItem = new MenuItem(resources.getString("application.action.update"));
        updateAppItem.setOnAction((ActionEvent t) -> {
            updateApplication();
        });
        applicationActionMenuButton.getItems().addAll(undeployAppItem, enableAppItem, disableAppItem, new SeparatorMenuItem(), openInBrowserItem, new SeparatorMenuItem(), updateAppItem);
    }
View Full Code Here

        menuHide.setAccelerator(KeyCombination.keyCombination("shortcut+H"));
        MenuItem menuHideOthers = new MenuItem("Andere ausblenden");
        menuHideOthers.setAccelerator(KeyCombination.keyCombination("Alt+shortcut+H"));
        MenuItem menuShowAll = new MenuItem("Alle einblenden");
        menuShowAll.setDisable(true);
        menuSystemPreferences.getItems().addAll(new MenuItem("\u00DCber Systemeinstellungen"), new SeparatorMenuItem(), menuServices,
                new SeparatorMenuItem(), menuHide, menuHideOthers, menuShowAll, new MenuItem("Systemeinstellungen beenden"));

        Menu menuEdit = new Menu("Bearbeiten");
        menuEdit.getItems().addAll(new MenuItem("..."));

        Menu menuPreferences = new Menu("Einstellungen");
        menuPreferences.getItems().addAll(new MenuItem("..."));

        Menu menuWindow = new Menu("Fenster");
        MenuItem windowClose = new MenuItem("Schlie\u00dfen");
        windowClose.setAccelerator(KeyCombination.keyCombination("shortcut+W"));
        MenuItem windowDock = new MenuItem("Im Dock ablegen");
        windowDock.setAccelerator(KeyCombination.keyCombination("shortcut+M"));
        CheckMenuItem actual = new CheckMenuItem("Datum & Uhrzeit");
        actual.setSelected(true);
        menuWindow.getItems().addAll(windowClose, windowDock, new SeparatorMenuItem(), actual);

        Menu menuHelp = new Menu("Hilfe");
        MenuItem help = new MenuItem("Systemeinstellungen-Hilfe");
        help.setAccelerator(KeyCombination.keyCombination("shortcut+?"));
        menuHelp.getItems().addAll(new MenuItem("Schlie\u00dfen"), help);
View Full Code Here

        menuHide.setAccelerator(KeyCombination.keyCombination("shortcut+H"));
        MenuItem menuHideOthers = new MenuItem("Andere ausblenden");
        menuHideOthers.setAccelerator(KeyCombination.keyCombination("Alt+shortcut+H"));
        MenuItem menuShowAll = new MenuItem("Alle einblenden");
        menuShowAll.setDisable(true);
        menuSystemPreferences.getItems().addAll(new MenuItem("\u00DCber Systemeinstellungen"), new SeparatorMenuItem(), menuServices,
                new SeparatorMenuItem(), menuHide, menuHideOthers, menuShowAll, new MenuItem("Systemeinstellungen beenden"));

        Menu menuEdit = new Menu("Bearbeiten");
        menuEdit.getItems().addAll(new MenuItem("..."));

        Menu menuPreferences = new Menu("Einstellungen");
        menuPreferences.getItems().addAll(new MenuItem("..."));

        Menu menuWindow = new Menu("Fenster");
        MenuItem windowClose = new MenuItem("Schlie\u00dfen");
        windowClose.setAccelerator(KeyCombination.keyCombination("shortcut+W"));
        MenuItem windowDock = new MenuItem("Im Dock ablegen");
        windowDock.setAccelerator(KeyCombination.keyCombination("shortcut+M"));
        CheckMenuItem actual = new CheckMenuItem("Datum & Uhrzeit");
        actual.setSelected(true);
        menuWindow.getItems().addAll(windowClose, windowDock, new SeparatorMenuItem(), actual);

        Menu menuHelp = new Menu("Hilfe");
        MenuItem help = new MenuItem("Systemeinstellungen-Hilfe");
        help.setAccelerator(KeyCombination.keyCombination("shortcut+?"));
        menuHelp.getItems().addAll(new MenuItem("Schlie\u00dfen"), help);
View Full Code Here

                public void handle(ActionEvent e) {
                    switchMaximize();
                    contextMenu.hide(); // Stay stuck on screen
                }
            });
            contextMenu.getItems().addAll(maximizeMenuItem, new SeparatorMenuItem());
        }

        // Fullscreen
        if (stageStyle != StageStyle.UTILITY && stage.isResizable()) {
            fullScreenMenuItem = new CheckMenuItem(LOC.getString("FullScreen"));
            fullScreenMenuItem.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent e) {
                    // fake
                    //maximizeProperty().set(!maximizeProperty().get());
                    switchFullscreen();
                }
            });
            fullScreenMenuItem.setAccelerator(new KeyCodeCombination(KeyCode.F, KeyCombination.CONTROL_DOWN, KeyCombination.SHORTCUT_DOWN));

            contextMenu.getItems().addAll(fullScreenMenuItem, new SeparatorMenuItem());
        }

        // Close
        MenuItem closeMenuItem = new MenuItem(LOC.getString("Close"));
        closeMenuItem.setOnAction(new EventHandler<ActionEvent>() {
View Full Code Here

                                                controller.selectTimeAndType(interval, type);
                                                selectedNodes.setAll(node);
                                            });
                                        }
                                    },
                                    new SeparatorMenuItem(),
                                    new MenuItem("Zoom into Time Range") {
                                        {
                                            setOnAction((ActionEvent t) -> {
                                                if (interval.toDuration().isShorterThan(Seconds.ONE.toStandardDuration()) == false) {
                                                    controller.pushTimeRange(interval);
View Full Code Here

TOP

Related Classes of javafx.scene.control.SeparatorMenuItem

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.