bug/new-entries-dont-get-validated Validierung von Einträgen #11

Merged
SZUT-Dominik merged 2 commits from bug/new-entries-dont-get-validated into main 2024-04-16 14:05:44 +00:00
Showing only changes of commit 9ebd585dd2 - Show all commits

View file

@ -119,7 +119,7 @@ public class AllPatientController {
this.buttonAdd.setDisable(true);
ChangeListener<String> inputNewPatientListener = (observableValue, oldText, newText) ->
AllPatientController.this.buttonAdd.setDisable(!AllPatientController.this.areInputDataValid());
AllPatientController.this.buttonAdd.setDisable(!AllPatientController.this.isInputDataValid());
this.textFieldSurname.textProperty().addListener(inputNewPatientListener);
this.textFieldFirstName.textProperty().addListener(inputNewPatientListener);
this.textFieldDateOfBirth.textProperty().addListener(inputNewPatientListener);
@ -274,7 +274,7 @@ public class AllPatientController {
this.textFieldAssets.clear();
}
private boolean areInputDataValid() {
private boolean isInputDataValid() {
if (!this.textFieldDateOfBirth.getText().isBlank()) {
try {
DateConverter.convertStringToLocalDate(this.textFieldDateOfBirth.getText());