final ListView listView) { final FetchNamesTask fetchNamesTask = new FetchNamesTask(); triggerButton.setDisable(true); databaseActivityIndicator.setVisible(true); databaseActivityIndicator.progressProperty().bind(fetchNamesTask.progressProperty()); @Override public void changed(ObservableValue<? extends Boolean> observable, Boolean wasRunning, Boolean isRunning) { if (!isRunning) { triggerButton.setDisable(false); databaseActivityIndicator.setVisible(false);
public class Dashboard extends ScreenController { @FXML public Button buttonDashboard1; @FXML private void initialize() { buttonDashboard1.setDisable(true); } }
@Override public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) { updateConfig.setDisable(false); } });
/** * */ public void setEnableRun() { this.run.setDisable(false); }
@Override public void handle(ActionEvent event) { AquaFx.setEarthStyle(); aqua.setDisable(false); fire.setDisable(false); earth.setDisable(true); wind.setDisable(false); } });
@Override public void handle(ActionEvent event) { AquaFx.style(); aqua.setDisable(true); fire.setDisable(false); earth.setDisable(false); wind.setDisable(false); } });
@Override public void handle(ActionEvent event) { AquaFx.setFireStyle(); aqua.setDisable(false); fire.setDisable(true); earth.setDisable(false); wind.setDisable(false); } });
@Override public void handle(ActionEvent event) { AquaFx.setAirStyle(); aqua.setDisable(false); fire.setDisable(false); earth.setDisable(false); wind.setDisable(true); } });
@Override public void handle(ActionEvent event) { enableFirebug(webView.getEngine()); firebug.setDisable(true); } });}
private void setSelectedFolder(final File dir) { this.path = dir.getAbsolutePath(); this.folderPath.setText(this.path); this.next.setDisable(false); } }
/** * * @param path Folder path */ public void setFolderPath(final String path) { this.path = path; this.folderPath.setText(this.path); this.next.setDisable(false); }
@Override public void updateLocation(UpdateCurrentLocationEvent current) { boolean hasPrevious = current.isHasPrevious(); backIcon.setDisable(!hasPrevious); }
final Button myButton = new Button("Wait for " + delayTime + " seconds."); myButton.setDisable(true); final Timeline animation = new Timeline( new KeyFrame(Duration.seconds(delayTime), new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent actionEvent) { myButton.setDisable(false); } })); animation.setCycleCount(1); animation.play();
/** * */ public void initialize() { this.next.setText(RESOURCES.getString("next")); this.next.setDisable(true); this.selectFolder.setText(RESOURCES.getString("select_folder")); }
@Override public void initialize() { validatePinCodeButton.setDisable(true); Stream.of(step1Box, step2Box, step3Box, separator1, separator2).forEach(node -> setNodeVisibility(node, false)); uiStep1(); Buttons.setOnClick(openLoginUrlButton, this::startNewSession); this.pinCodeField.textProperty().addListener((o, prev, cur) -> pinCodeTextListener(cur)); }
private void validateButton( ButtonType buttonType, BooleanSupplier condition) { Button btn = (Button)dialog.getDialogPane().lookupButton(buttonType); if ( btn != null ) { Node focusOwner = (btn.getScene() != null) ? btn.getScene().getFocusOwner() : null; btn.setDisable(condition.getAsBoolean()); if(focusOwner != null) { focusOwner.requestFocus(); } } }
@Override public void updateLocation(UpdateCurrentLocationEvent current) { Node location = current.getLocationNode(); boolean hasPrevious = current.isHasPrevious(); backIcon.setDisable(!hasPrevious); if (location != null) { Platform.runLater(() -> { locationContainer.getChildren().clear(); locationContainer.getChildren().add(location); }); } }
public void showErrorMessage(String message) { Platform.runLater(() -> { detailsLabel.setText("An error occurred:\n" + message); updateProgressAnimation.setVisible(false); updateProgressText.setVisible(false); okButton.setDisable(false); okButton.setText(bundle.getString("button.ok.retry")); updateProgressBar.setVisible(false); }); } }
protected void setNextButtonAction(EventHandler<MouseEvent> nextButtonAction) { nextButton.setOnMouseClicked(event -> { nextButton.setDisable(true); nextButtonAction.handle(event); }); this.getParent().setOnCloseRequest(event -> { if (this.messageWaitingForResponse != null) { this.messageWaitingForResponse.sendCancelSignal(); } event.consume(); }); }
@Override public void initialize() { updateService.getLatestVersion() .thenAcceptAsync(this::displayVersion, Platform::runLater); final boolean canSelfupdate = UpdateService.selfupdateCompatible(); updateButton.setVisible(canSelfupdate); updateButton.setManaged(canSelfupdate); updateButton.setOnAction(e -> { this.updateButton.setDisable(true); this.updateService.selfupdate(); }); }