コード例 #1
0
 @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)));
 }
コード例 #2
0
 @FXML
 public void onValidateReportsButtonPressed(ActionEvent event) {
   creditRequestService.updateCreditRequests(toValidate);
   screens.toReferentPage();
 }