@Override public void initialize(URL location, ResourceBundle resources) { toValidate = creditRequestService.getNotValidatedCreditRequests(); if (toValidate.isEmpty()) { statusLabel.setText("No Financial Reports to Validate"); } else { statusLabel.setText("Validate the following Financial Reports"); } toValidate.forEach(f -> creditRequestAccordion.getPanes().add(createTitledPane(f))); }
@FXML public void onValidateReportsButtonPressed(ActionEvent event) { creditRequestService.updateCreditRequests(toValidate); screens.toReferentPage(); }