summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/se/notepadMinusMinus/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/fhswf/in/inf/se/notepadMinusMinus/view')
-rw-r--r--src/de/fhswf/in/inf/se/notepadMinusMinus/view/MainViewController.java26
1 files changed, 14 insertions, 12 deletions
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()
{