|
SandMark version 2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--sandmark.gui.StatTableModel
Field Summary | |
(package private) java.lang.Class[] |
columnClasses
|
(package private) java.lang.String[] |
columnNames
|
(package private) java.lang.Object[][] |
data
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
StatTableModel(Stats stats)
Constructs the package level data representation. |
|
StatTableModel(Stats stats,
java.lang.String packageName)
Constructs the class level data representation. |
|
StatTableModel(java.lang.String className,
Stats stats)
Constructs the method level data representation. |
Method Summary | |
java.lang.Class |
getColumnClass(int c)
Returns the Class of object at the first row of the cth column. |
int |
getColumnCount()
Returns the number of colmuns. |
java.lang.String |
getColumnName(int col)
Returns the title of the specified column |
java.lang.Object[][] |
getData()
Gets the Object array that represents the data stored in the table. |
int |
getRowCount()
Returns the current number of rows |
java.lang.Object |
getValueAt(int row,
int col)
Returns the value at the cell specified |
boolean |
isCellEditable(int r,
int c)
Returns true if the cell at row r, column c is editable, otherwise false. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the value in the table to the specified value. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String[] columnNames
java.lang.Object[][] data
java.lang.Class[] columnClasses
Constructor Detail |
public StatTableModel(Stats stats)
stats
- the Statistics object with the data to display.public StatTableModel(Stats stats, java.lang.String packageName)
stats
- the Statistics object with the data to display.public StatTableModel(java.lang.String className, Stats stats)
stats
- the Statistics object with the data to display.className
- the name of the class for which to display method data.Method Detail |
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- the column number (zero based index)
public java.lang.Object getValueAt(int row, int col)
row
- the row in the tablecol
- the column in the table
public java.lang.Class getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
c
- the column in the table for which to get the class
public boolean isCellEditable(int r, int c)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
r
- a row in the table.c
- a column in the table.
public void setValueAt(java.lang.Object value, int row, int col)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
value
- the value to insert into the table.row
- a row in the tablepublic java.lang.Object[][] getData()
|
SandMark version 2.0 Mon Jun 17 12:30:47 MST 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |