refactor: bind croplist in schedule

This commit is contained in:
David Guler
2022-11-18 12:21:50 +01:00
parent 2f69c48800
commit 3a69119eb7
2 changed files with 3 additions and 13 deletions
@@ -90,10 +90,12 @@ public class MyGardenController {
Label label = new Label(plant.name());
label.setMaxWidth(2000);
HBox.setHgrow(label, Priority.ALWAYS);
Button details = new Button("Details");
Button delete = new Button("delete");
details.setOnAction(getGoToCropDetailEvent(crop));
delete.setOnAction(getDeleteCropEvent(crop));
hBox.getChildren().addAll(imageView, label, details, delete);
return hBox;
}