[#4]: Cleanup

This commit is contained in:
Dominik Säume 2024-04-11 09:59:33 +02:00
parent 5269a2c258
commit 9ebd585dd2
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C

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());