|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.jacorb.imr.util.ImRServerTableModel
public class ImRServerTableModel
This class is the model for the server table. On user changes, it writes back its edited cells via the IMRModel class.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ImRServerTableModel(ImRModel model)
The constructor. |
|
| Method Summary | |
|---|---|
java.lang.Class |
getColumnClass(int index)
Get the class of a specific column. |
int |
getColumnCount()
Get the number of columns of this table. |
java.lang.String |
getColumnName(int column)
Get the name of a specific column. |
int |
getRowCount()
Get the number of rows of this table. |
java.lang.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(java.lang.Object value,
int row,
int column)
Set the value of a specific cell, i.e. |
| 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 ImRServerTableModel(ImRModel model)
model - the ImRModel to write changes via.| Method Detail |
|---|
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 java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumn - the columns index.
public java.lang.Class getColumnClass(int index)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelindex - the columns index.
public java.lang.Object getValueAt(int row,
int column)
row - the cells row.column - the cells column.
public boolean isCellEditable(int row,
int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - the cells row.column - the cells column.
public void setValueAt(java.lang.Object value,
int row,
int column)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelvalue - the new value.row - the cells row.column - the cells column.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||