Package org.controlsfx.control.action

Examples of org.controlsfx.control.action.Action


        return modalDialog;
    }

    public void exitApp() {

        Action response = Dialogs.create()
                .owner(getPrimaryStage())
                .message(getResourceBundle().getString("app.dialog.confirm.exitapp.message"))
                .nativeTitleBar()
                .actions(new Action[]{Dialog.Actions.YES, Dialog.Actions.NO})
                .showConfirm();
View Full Code Here


            changeServicePortsService.setPortBase(Integer.parseInt(value));
        }
    }

    private boolean confirmChangeServicePorts() {
        Action response = Dialogs.create()
                .owner(viewContext.getPrimaryStage())
                .message(resources.getString("serviceports.dialog.servicePortChangeConfirm"))
                .nativeTitleBar()
                .actions(new Action[]{Dialog.Actions.YES, Dialog.Actions.NO})
                .showConfirm();
View Full Code Here

    }

    @FXML
    public void deleteDomain() {
        logger.log(Level.INFO, "deleteDomain");
        Action response = Dialogs.create()
                .owner(viewContext.getPrimaryStage())
                .message(resources.getString("configuration.dialog.message.deleteDomain"))
                .nativeTitleBar()
                .actions(new Action[]{Dialog.Actions.YES, Dialog.Actions.NO})
                .showConfirm();
View Full Code Here

        progressIndicator.setVisible(false);
        domainDataModel.startUpdateTimer();
    }

    private void deleteApplication() {
        Action response = Dialogs.create()
                .owner(viewContext.getPrimaryStage())
                .message(resources.getString("application.message.confirmUndeploy").concat(" ").concat(application.getName()).concat("?"))
                .nativeTitleBar()
                .actions(new Action[]{Dialog.Actions.YES, Dialog.Actions.NO})
                .showConfirm();
View Full Code Here

    }

    @FXML
    public void domainStop() {
        logger.log(Level.INFO, "domain STOP");
        Action response = Dialogs.create()
                .owner(viewContext.getPrimaryStage())
                .message(resources.getString("dashboard.confirm.domain.stop.message").concat(" '").concat(domainNameLabel.getText().concat("'?")))
                .nativeTitleBar()
                .actions(new Action[]{Dialog.Actions.YES, Dialog.Actions.NO})
                .showConfirm();
View Full Code Here

        void initialize() {
            assert resetFiltersButton != null : "fx:id=\"resetFiltersButton\" was not injected: check your FXML file 'NoEventsDialog.fxml'.";
            assert dismissButton != null : "fx:id=\"dismissButton\" was not injected: check your FXML file 'NoEventsDialog.fxml'.";
            assert zoomButton != null : "fx:id=\"zoomButton\" was not injected: check your FXML file 'NoEventsDialog.fxml'.";

            Action zoomOutAction = new ZoomOut(controller);
            zoomButton.setOnAction(zoomOutAction);
            zoomButton.disableProperty().bind(zoomOutAction.disabledProperty());

            dismissButton.setOnAction(e -> {
                closeCallback.run();
            });
            Action defaultFiltersAction = new DefaultFilters(controller);
            resetFiltersButton.setOnAction(defaultFiltersAction);
            resetFiltersButton.disableProperty().bind(defaultFiltersAction.disabledProperty());
        }
View Full Code Here

            if (chartContextMenu != null) {
                chartContextMenu.hide();
            }
            if (clickEvent.getButton() == MouseButton.SECONDARY && clickEvent.isStillSincePress()) {

                chartContextMenu = ActionUtils.createContextMenu(Arrays.asList(new Action("Place Marker") {
                    {
                        setGraphic(new ImageView(new Image("/org/sleuthkit/autopsy/timeline/images/marker.png", 16, 16, true, true, true)));
                        setEventHandler((ActionEvent t) -> {
                            if (guideLine == null) {
                                guideLine = new GuideLine(0, 0, 0, getHeight(), dateAxis);
View Full Code Here

    }

    @Override
    public void setController(TimeLineController timeLineController) {
        this.controller = timeLineController;
        Action defaultFiltersAction = new DefaultFilters(controller);
        defaultButton.setOnAction(defaultFiltersAction);
        defaultButton.disableProperty().bind(defaultFiltersAction.disabledProperty());
        this.setModel(timeLineController.getEventsModel());
    }
View Full Code Here

TOP

Related Classes of org.controlsfx.control.action.Action

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.