From f3e4fc62084c66e2cc3d724ee593aefa0d9ccbf8 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 30 Nov 2015 23:55:49 +0100 Subject: Write JavaDoc comments --- .../notepadMinusMinus/view/MainViewController.java | 26 ++++++++++++---------- 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'src/de/fhswf/in/inf/se/notepadMinusMinus/view') diff --git a/src/de/fhswf/in/inf/se/notepadMinusMinus/view/MainViewController.java b/src/de/fhswf/in/inf/se/notepadMinusMinus/view/MainViewController.java index da786bb..115a06f 100644 --- a/src/de/fhswf/in/inf/se/notepadMinusMinus/view/MainViewController.java +++ b/src/de/fhswf/in/inf/se/notepadMinusMinus/view/MainViewController.java @@ -21,7 +21,7 @@ import javafx.scene.control.cell.TextFieldTableCell; import javafx.stage.FileChooser; /** - * TODO Add comment here + * The controller for the MainView.fxml. * * @author $Author: $ * @version $Revision: $, $Date: $ UTC @@ -68,7 +68,7 @@ public class MainViewController private final int ectsColloquium = 3; /** - * TODO Add method comment here + * Initializes the generated MainView. * */ @FXML @@ -129,9 +129,10 @@ public class MainViewController } /** - * TODO Add method comment here + * Gives access to the {@link Main} for {@link File} and data handling. * * @param main + * The {@link Main} to get access to. */ public void setMain(Main main) { @@ -152,7 +153,7 @@ public class MainViewController } /** - * TODO Add method comment here + * Handle adding a new {@link Grade} to the gradeTable. * */ @FXML @@ -163,7 +164,7 @@ public class MainViewController } /** - * TODO Add method comment here + * Handle deleting the selected value from the gradeTable. * */ @FXML @@ -178,7 +179,7 @@ public class MainViewController } /** - * TODO Add method comment here + * Handle resetting everything to the initial state. * */ @FXML @@ -187,12 +188,14 @@ public class MainViewController if (main != null) { gradeTable.getItems().clear(); + colloquiumComboBox.setValue(new BigDecimal(0.0)); + thesisComboBox.setValue(new BigDecimal(0.0)); main.setOpenFile(null); } } /** - * TODO Add method comment here + * Handle opening a {@link File}. * */ @FXML @@ -228,7 +231,7 @@ public class MainViewController } /** - * TODO Add method comment here + * Handle saving of an open {@link File} or let the user choose a location. * */ @FXML @@ -248,7 +251,7 @@ public class MainViewController } /** - * TODO Add method comment here + * Save to a user chosen location and set as new open {@link File}. * */ @FXML @@ -288,7 +291,7 @@ public class MainViewController } /** - * TODO Add method comment here + * Handle exiting the application. * */ @FXML @@ -298,9 +301,8 @@ public class MainViewController } /** - * TODO Add method comment here + * Calculate the total ects and the average grade. * - * @param main */ private void calculateEctsAndAverageGrade() { -- cgit v1.2.3-70-g09d2