|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--edu.tamu.gamebots.ui.SyncMsgTableModel
A table model for displaying vision messages from the server based on a MessageBlock object. Columns:
Field Summary |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
SyncMsgTableModel(MessageBlock block)
Creates a new instance of SyncMsgTableModel |
Method Summary | |
Class |
getColumnClass(int col)
Returns the class of the data in a given column |
int |
getColumnCount()
Returns the number of columns in the table |
String |
getColumnName(int column)
Given a column number, returns the name of the column. |
int |
getRowCount()
Returns the number of rows |
Object |
getValueAt(int row,
int column)
Returns the vlaue at a row and column |
boolean |
isCellEditable(int param,
int param1)
False, no cells are editable |
void |
setValueAt(Object obj,
int param,
int param2)
Set the value of a cell to an object |
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 |
Constructor Detail |
public SyncMsgTableModel(MessageBlock block)
Creates a new instance of SyncMsgTableModel
block
- The MessageBlock
Method Detail |
public Object getValueAt(int row, int column)
Returns the vlaue at a row and column
row
- The rowcolumn
- THe column
public String getColumnName(int column)
Given a column number, returns the name of the column.
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- The column number
public int getRowCount()
Returns the number of rows
public boolean isCellEditable(int param, int param1)
False, no cells are editable
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
param
- row numberparam1
- column number
public void setValueAt(Object obj, int param, int param2)
Set the value of a cell to an object
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
obj
- The object to set toparam
- row numberparam2
- column numberpublic Class getColumnClass(int col)
Returns the class of the data in a given column
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
col
- The Column numober
public int getColumnCount()
Returns the number of columns in the table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |