33import java .sql .SQLException ;
44import java .util .Arrays ;
55
6+ import database .bean .log .CertificateRegisterLog ;
67import database .bean .log .ModularClassLog ;
78import database .bean .log .StudentLog ;
89import database .bean .log .TransactionType ;
1718public class TrackerController {
1819 @ FXML private TextArea txtAreaStudentLog ;
1920 @ FXML private TextArea txtAreaModuleLog ;
21+ @ FXML private TextArea txtAreaClassLog ;
22+ @ FXML private TextArea txtAreaRegistrationLog ;
2023 @ FXML private ComboBox <String > cmbFilter ;
2124
2225 public void initialize () {
@@ -26,30 +29,44 @@ public void initialize() {
2629
2730 try
2831 {
29- StudentLog [] studLog = LogManager .getLog (StudentLog .class ,
30- TransactionType .INSERT , 0 );//TransactionType can take 3 different things
31- ModularClassLog [] modularClassLog =
32+ CertificateRegisterLog [] certRegLog =
33+ LogManager .getLog (CertificateRegisterLog .class ,
34+ TransactionType .NONE , 0 );//TransactionType can take 3 different things
35+
36+
37+ txtAreaStudentLog .setWrapText (true );
38+ Arrays .stream (certRegLog ).forEach ( log ->{
39+ txtAreaStudentLog .setText (txtAreaStudentLog .getText () + "- " + log + "\n \n " );
40+ });
41+
42+
43+
44+ /*ModularClassLog[] modularClassLog =
3245 LogManager.getLog(ModularClassLog.class,
3346 TransactionType.NONE, 0);
3447 txtAreaStudentLog.setWrapText(true);
35- System .out .println ( "\n <<<<<<<Modular ClassLog>>>>>" );
3648 Arrays.stream(modularClassLog).forEach( log ->{
37- // System.out.println("-Description: " + log);
38-
3949 txtAreaStudentLog.setText(txtAreaStudentLog.getText() + " -Description: " + log);
40- });
50+ });*/
4151
4252 }
43- catch (SQLException e )
44- {
45- // FIXME Auto-generated catch block
53+ catch (SQLException e ) {
4654 e .printStackTrace ();
4755 }
4856 }
4957
5058
5159 @ FXML
52- public void itemsSelected (ActionEvent event ) {
60+ public void itemsSelectedfrmStudent (ActionEvent event ) {
61+ }
62+ @ FXML
63+ public void itemsSelectedfrmmodule (ActionEvent event ) {
64+ }
65+ @ FXML
66+ public void itemsSelectedfrmClass (ActionEvent event ) {
67+ }
68+ @ FXML
69+ public void itemsSelectedfrmReg (ActionEvent event ) {
5370 }
5471
5572}
0 commit comments