|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
net.bluebones.boggle.ScoreTableModel
public class ScoreTableModel
TableModel for the table of scores in ScorePanel.
ScorePanel,
TableModel,
Serialized Form| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ScoreTableModel(Rubber r)
Initializes a new ScoreTableModel with the specified values. |
|
| Method Summary | |
|---|---|
NamedClient |
getClientAt(int row)
Gets the NamedClient represented in the specified row. |
int |
getColumnCount()
Gets the number of columns in the table data. |
String |
getColumnName(int i)
Gets the name of the column at position i. |
int |
getRowCount()
Gets the number of rows in the table data. |
Object |
getValueAt(int row,
int col)
Gets the cell contents at row, col. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, 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 ScoreTableModel(Rubber r)
ScoreTableModel with the specified values.
r - Rubber containing values to initialize the
model with.| Method Detail |
|---|
public int getColumnCount()
int number of columns in the table data.public int getRowCount()
int number of rows in the table data.public String getColumnName(int i)
i.
getColumnName in interface TableModelgetColumnName in class AbstractTableModeli - int column number to return name of.
String name of column.
public Object getValueAt(int row,
int col)
row, col.
row - int row number.col - int col number.
Object value in specified cell.public NamedClient getClientAt(int row)
NamedClient represented in the specified row.
row - int row number.
NamedClient for specified
row.
IllegalStateException - If no clients have been set in this
model.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||