5 import javax
.swing
.table
.AbstractTableModel
;
9 public class SessionTableModel
10 extends AbstractTableModel
14 private RepetoireList l_repetoire
;
15 // private final static int N_DATES = 5;
16 // private Date[] dates;
18 public SessionTableModel()
23 // dates = new Date[N_DATES];
24 // for (int i=0; i<N_DATES; i++) {
25 // dates[i] = new Date();
29 public String
getColumnName(int col
)
38 public int getColumnCount()
43 public int getRowCount()
48 public Object
getValueAt(int row
, int col
)
50 if (col
== 0 && n_rows
> 0) {
51 if (l_repetoire
!= null) {
52 return l_repetoire
.get(row
);
60 private void update_n_rows()
62 n_rows
= l_repetoire
.size();
65 public void update_student_sessions(int sid
)
67 l_repetoire
= MySQLManager
.get_student_repetoire(sid
);
71 fireTableDataChanged();