new home screen, tutorial fxml file and missing javadoc

This commit is contained in:
giavaphi
2022-11-20 21:10:55 +01:00
parent e96280cd0c
commit 7920bdff28
9 changed files with 347 additions and 35 deletions
@@ -81,22 +81,37 @@ public class CropDetailController {
}
/**
* close Window
*/
@FXML
void goBack() {
Stage stage = (Stage) imageView.getScene().getWindow();
stage.close();
}
/**
* open dialog to set area
*/
@FXML
void setArea() {
}
/**
* open dialog to set location
*/
@FXML
void setLocation() {
}
/**
* set labels and image from selected {@link Crop}
* set icons for buttons
* @param crop {@link Crop} which will be displayed
* @throws PlantNotFoundException exception
*/
public void setPlantFromCrop(Crop crop) throws PlantNotFoundException {
this.crop = crop;
try {