本文整理了Java中javafx.scene.control.Button.setDisable()
方法的一些代码示例,展示了Button.setDisable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setDisable()
方法的具体详情如下:
包路径:javafx.scene.control.Button
类名称:Button
方法名:setDisable
暂无
代码示例来源:origin: stackoverflow.com
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);
代码示例来源:origin: stackoverflow.com
public class Dashboard extends ScreenController {
@FXML public Button buttonDashboard1;
@FXML
private void initialize() {
buttonDashboard1.setDisable(true);
}
}
代码示例来源:origin: org.copper-engine/copper-monitoring-client
@Override
public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
updateConfig.setDisable(false);
}
});
代码示例来源:origin: it.unibo.alchemist/alchemist-projectview
/**
*
*/
public void setEnableRun() {
this.run.setDisable(false);
}
代码示例来源:origin: com.aquafx-project/aquafx
@Override public void handle(ActionEvent event) {
AquaFx.setEarthStyle();
aqua.setDisable(false);
fire.setDisable(false);
earth.setDisable(true);
wind.setDisable(false);
}
});
代码示例来源:origin: com.aquafx-project/aquafx
@Override public void handle(ActionEvent event) {
AquaFx.style();
aqua.setDisable(true);
fire.setDisable(false);
earth.setDisable(false);
wind.setDisable(false);
}
});
代码示例来源:origin: com.aquafx-project/aquafx
@Override public void handle(ActionEvent event) {
AquaFx.setFireStyle();
aqua.setDisable(false);
fire.setDisable(true);
earth.setDisable(false);
wind.setDisable(false);
}
});
代码示例来源:origin: com.aquafx-project/aquafx
@Override public void handle(ActionEvent event) {
AquaFx.setAirStyle();
aqua.setDisable(false);
fire.setDisable(false);
earth.setDisable(false);
wind.setDisable(true);
}
});
代码示例来源:origin: org.netbeans.html/net.java.html.boot.fx
@Override
public void handle(ActionEvent event) {
enableFirebug(webView.getEngine());
firebug.setDisable(true);
}
});}
代码示例来源:origin: it.unibo.alchemist/alchemist-projectview
private void setSelectedFolder(final File dir) {
this.path = dir.getAbsolutePath();
this.folderPath.setText(this.path);
this.next.setDisable(false);
}
}
代码示例来源:origin: it.unibo.alchemist/alchemist-projectview
/**
*
* @param path Folder path
*/
public void setFolderPath(final String path) {
this.path = path;
this.folderPath.setText(this.path);
this.next.setDisable(false);
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
@Override
public void updateLocation(UpdateCurrentLocationEvent current) {
boolean hasPrevious = current.isHasPrevious();
backIcon.setDisable(!hasPrevious);
}
代码示例来源:origin: stackoverflow.com
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();
代码示例来源:origin: it.unibo.alchemist/alchemist-projectview
/**
*
*/
public void initialize() {
this.next.setText(RESOURCES.getString("next"));
this.next.setDisable(true);
this.selectFolder.setText(RESOURCES.getString("select_folder"));
}
代码示例来源:origin: Tristan971/Lyrebird
@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));
}
代码示例来源:origin: org.controlsfx/controlsfx
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();
}
}
}
代码示例来源:origin: com.nexitia.emaginplatform/emagin-jfxcore-engine
@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);
});
}
}
代码示例来源:origin: com.github.vatbub/common.updater
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);
});
}
}
代码示例来源:origin: PhoenicisOrg/phoenicis
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();
});
}
代码示例来源:origin: Tristan971/Lyrebird
@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();
});
}
内容来源于网络,如有侵权,请联系作者删除!