| java.lang.Object javax.swing.table.AbstractTableModel org.jacorb.imr.util.ImRServerTableModel
ImRServerTableModel | public class ImRServerTableModel extends AbstractTableModel (Code) | | This class is the model for the server table.
On user changes, it writes back its edited cells
via the IMRModel class.
author: Nicolas Noffke author: $Id: ImRServerTableModel.java,v 1.9 2006/06/16 12:36:28 alphonse.bendt Exp $ |
Method Summary | |
public Class | getColumnClass(int index) Get the class of a specific column.
Parameters: index - the columns index. | public int | getColumnCount() Get the number of columns of this table. | public String | getColumnName(int column) Get the name of a specific column.
Parameters: column - the columns index. | public int | getRowCount() Get the number of rows of this table. | public Object | getValueAt(int row, int column) Get the value of a specific cell.
Parameters: row - the cells row. Parameters: column - the cells column. | public boolean | isCellEditable(int row, int column) Test, wheter a cell is editable.
Parameters: row - the cells row. Parameters: column - the cells column. | public void | serverRefreshed(int index) Notify the JTable that a server has been updated. | public void | setServers(ServerInfo[] servers) Pass in the servers the table should display. | public void | setValueAt(Object value, int row, int column) Set the value of a specific cell, i.e. |
ImRServerTableModel | public ImRServerTableModel(ImRModel model)(Code) | | The constructor.
Parameters: model - the ImRModel to write changes via. |
getColumnClass | public Class getColumnClass(int index)(Code) | | Get the class of a specific column.
Parameters: index - the columns index. the columns Class object. |
getColumnCount | public int getColumnCount()(Code) | | Get the number of columns of this table.
the number of columns. |
getColumnName | public String getColumnName(int column)(Code) | | Get the name of a specific column.
Parameters: column - the columns index. String the columns name. |
getRowCount | public int getRowCount()(Code) | | Get the number of rows of this table.
the number of rows. |
getValueAt | public Object getValueAt(int row, int column)(Code) | | Get the value of a specific cell.
Parameters: row - the cells row. Parameters: column - the cells column. the cells value. |
isCellEditable | public boolean isCellEditable(int row, int column)(Code) | | Test, wheter a cell is editable.
Parameters: row - the cells row. Parameters: column - the cells column. true, if the cell is editable. |
serverRefreshed | public void serverRefreshed(int index)(Code) | | Notify the JTable that a server has been updated.
Parameters: index - the servers index in the table. |
setServers | public void setServers(ServerInfo[] servers)(Code) | | Pass in the servers the table should display.
Notify the JTable of that.
Parameters: servers - an array containing the ServerInfo structs of theservers to display. |
setValueAt | public void setValueAt(Object value, int row, int column)(Code) | | Set the value of a specific cell, i.e. the user has edited a cell.
Parameters: value - the new value. Parameters: row - the cells row. Parameters: column - the cells column. |
|
|