@Override public BooleanBinding isEqualTo(ObservableStringValue other) { return delegate.isEqualTo(other); }
@Override public BooleanBinding isEqualTo(String other) { return delegate.isEqualTo(other); }
batcherNumSet.disableProperty().bind(batcherId.textProperty().isEqualTo(""));
@Override // This method is called by the FXMLLoader when initialization is complete public void initialize(URL fxmlFileLocation, ResourceBundle resources) { assert name != null : "fx:id=\"name\" was not injected: check your FXML file 'Provider.fxml'."; assert start != null : "fx:id=\"start\" was not injected: check your FXML file 'Provider.fxml'."; assert status != null : "fx:id=\"status\" was not injected: check your FXML file 'Provider.fxml'."; assert stop != null : "fx:id=\"stop\" was not injected: check your FXML file 'Provider.fxml'."; name.setText(dataProviderInfo.getName()); status.setText(dataProviderInfo.getStatus()); start.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { dataProvider.startMonitoringDataProvider(dataProviderInfo.getName()); context.createConfigurationForm().delayedRefresh(); } }); start.disableProperty().bind(status.textProperty().isEqualTo("STARTED")); stop.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { dataProvider.stopMonitoringDataProvider(dataProviderInfo.getName()); context.createConfigurationForm().delayedRefresh(); } }); stop.disableProperty().bind(status.textProperty().isEqualTo("STOPPED")); }
showDeatils.disableProperty().bind(sqlId.textProperty().isEqualTo(""));
@Override // This method is called by the FXMLLoader when initialization is complete public void initialize(URL fxmlFileLocation, ResourceBundle resources) { assert password != null : "fx:id=\"password\" was not injected: check your FXML file 'Login.fxml'."; assert serverAddress != null : "fx:id=\"serverAddress\" was not injected: check your FXML file 'Login.fxml'."; assert serverRadioButton != null : "fx:id=\"serverRadioButton\" was not injected: check your FXML file 'Login.fxml'."; assert startButton != null : "fx:id=\"startButton\" was not injected: check your FXML file 'Login.fxml'."; assert user != null : "fx:id=\"user\" was not injected: check your FXML file 'Login.fxml'."; ToggleGroup groupConnection = new ToggleGroup(); serverRadioButton.setSelected(true); serverRadioButton.setToggleGroup(groupConnection); user.disableProperty().bind(serverRadioButton.selectedProperty().not()); password.disableProperty().bind(serverRadioButton.selectedProperty().not()); serverAddress.disableProperty().bind(serverRadioButton.selectedProperty().not()); startButton.disableProperty().bind(serverAddress.textProperty().isEqualTo("")); startButton.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { try { if (serverRadioButton.isSelected()) { cleanup(); mainFactory.setHttpGuiCopperDataProvider(serverAddress.getText(), user.getText(), password.getText()); } } catch (Exception e) { throw new RuntimeException(e); } } }); serverAddress.textProperty().bindBidirectional(settingsModelSingleton.lastConnectedServer); }