public class ImRServerTableModel extends AbstractTableModel
listenerList| Constructor and Description |
|---|
ImRServerTableModel(ImRModel model)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getColumnClass(int index)
Get the class of a specific column.
|
int |
getColumnCount()
Get the number of columns of this table.
|
String |
getColumnName(int column)
Get the name of a specific column.
|
int |
getRowCount()
Get the number of rows of this table.
|
Object |
getValueAt(int row,
int column)
Get the value of a specific cell.
|
boolean |
isCellEditable(int row,
int column)
Test, wheter a cell is editable.
|
void |
serverRefreshed(int index)
Notify the JTable that a server has been updated.
|
void |
setServers(ServerInfo[] servers)
Pass in the servers the table should display.
|
void |
setValueAt(Object value,
int row,
int column)
Set the value of a specific cell, i.e.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic ImRServerTableModel(ImRModel model)
model - the ImRModel to write changes via.public void setServers(ServerInfo[] servers)
servers - an array containing the ServerInfo structs of the
servers to display.public void serverRefreshed(int index)
index - the servers index in the table.public int getRowCount()
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the columns index.public Class getColumnClass(int index)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelindex - the columns index.public Object getValueAt(int row, int column)
row - the cells row.column - the cells column.public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - the cells row.column - the cells column.public void setValueAt(Object value, int row, int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelvalue - the new value.row - the cells row.column - the cells column.Copyright © 2017 JacORB. All rights reserved.