|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.StatsTableModel
The table model for the statistic tables.
The constructor's GUI
parameter is required for
the association between the StatsTableModel
and the GUI
.
This was needed in order to get the user's selected statistics and retrieve these
statistic values from StatisticStorage
.
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
StatsTableModel(GUI gui)
Constructor associates the given gui with this table model. |
Method Summary | |
int |
getColumnCount()
Returns the number of columns in the table. |
java.lang.String[] |
getColumnHeaders()
Returns the table's column headers. |
int |
getRowCount()
Returns the number of rows in the table. |
java.lang.Object |
getValueAt(int row,
int col)
Returns the Object located at the given row
and col . |
java.lang.Object[][] |
update(java.lang.Object queryObject)
Updates the table's data. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatsTableModel(GUI gui)
gui
with this table model.
gui
- the GUI
to associate with this table modelMethod Detail |
public int getColumnCount()
public java.lang.String[] getColumnHeaders()
public int getRowCount()
public java.lang.Object getValueAt(int row, int col)
Object
located at the given row
and col
.
row
- the row with the desired Object
col
- the column with the desired Object
Object
at the given row and columnpublic java.lang.Object[][] update(java.lang.Object queryObject)
queryObject
- the query object which we are updating the statistic table for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |