JavaDoc for controller classes

This commit is contained in:
giavaphi
2022-12-05 01:56:15 +01:00
parent 0257dd9bf0
commit d725367f4d
11 changed files with 178 additions and 0 deletions
@@ -14,6 +14,9 @@ import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
/**
* Controller class for the Settings.fxml file
*/
public class SettingsController implements Initializable {
Settings settings = Settings.getInstance();
@@ -31,6 +34,11 @@ public class SettingsController implements Initializable {
@FXML
private Label location_label;
/**
* open dialog to set location
* @param event event
* @throws IOException exception
*/
@FXML
void setLocation(ActionEvent event) throws IOException {
openTextFieldDialog();
@@ -71,6 +79,10 @@ public class SettingsController implements Initializable {
button.setGraphic(imageView);
}
/**
* opens Dialog to set exception
* @throws IOException exception
*/
private void openTextFieldDialog() throws IOException {
Dialog<String> dialog = new Dialog<>();
dialog.setTitle("Set Location of your Garden");