Public Member Functions | |
InfoTableModel (Object[][] stats) | |
void | setData (Object[][] data) |
int | getColumnCount () |
int | getRowCount () |
String | getColumnName (int col) |
Object | getValueAt (int row, int col) |
Class | getColumnClass (int c) |
boolean | isCellEditable (int row, int col) |
Definition at line 377 of file InfoViewer.java.
|
Creates a new
Definition at line 386 of file InfoViewer.java. 00387 {
00388 this.data = stats;
00389 }
|
|
JTable uses this method to determine the default renderer/ editor for each cell. If we didn't implement this method, then the last column would contain text ("true"/"false"), rather than a check box. Definition at line 443 of file InfoViewer.java. 00444 { 00445 return getValueAt(0, c).getClass(); 00446 }
|
|
Definition at line 406 of file InfoViewer.java. 00407 {
00408 return columnNames.length;
00409 }
|
|
Definition at line 424 of file InfoViewer.java. 00425 {
00426 return columnNames[col];
00427 }
|
|
Definition at line 415 of file InfoViewer.java. 00416 {
00417 return data.length;
00418 }
|
|
Definition at line 433 of file InfoViewer.java. 00434 {
00435 return data[row][col];
00436 }
|
|
Don't need to implement this method unless your table's editable. Definition at line 451 of file InfoViewer.java. 00452 { 00453 return false; 00454 }
|
|
Set the data of this
Definition at line 397 of file InfoViewer.java. Referenced by org.objectweb.cjdbc.console.views.InfoViewer.updateData(). 00398 {
00399 this.data = data;
00400 }
|