org.jacorb.imr.util
Class ImRPOATableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.jacorb.imr.util.ImRPOATableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class ImRPOATableModel
extends javax.swing.table.AbstractTableModel

This is the model for the POA table. It does not write back data since the entries in the POA table are not editable.

Author:
Nicolas Noffke $Log: ImRPOATableModel.java,v $ Revision 1.6 2002/12/20 18:29:04 nicolas Updated Copyright year to 2003 Revision 1.5 2002/07/01 07:54:16 nicolas updated or inserted Copyright notice Revision 1.4 2002/03/19 09:25:11 nicolas updated copyright to 2002 Revision 1.3 2002/03/19 11:08:01 brose *** empty log message *** Revision 1.2 2002/03/17 18:44:01 brose *** empty log message *** Revision 1.4 1999/11/25 16:05:48 brose cosmetics Revision 1.3 1999/11/21 20:15:52 noffke GUI data is now updated periodically by a thread Revision 1.2 1999/11/14 17:15:40 noffke Cosmetics and commenting
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ImRPOATableModel()
           
 
Method Summary
 java.lang.Class getColumnClass(int index)
          Get the class of a specific column.
 int getColumnCount()
          Get the number of columns.
 java.lang.String getColumnName(int column)
          Get the name of a specific column.
 int getRowCount()
          Get the number of rows.
 java.lang.String getServerName()
          Get the name of the server these POAs are associated with.
 java.lang.Object getValueAt(int row, int column)
          Get the value of a specific table cell.
 void setPOAs(POAInfo[] poas)
          Pass in the POAs the POA table should display.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, 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

ImRPOATableModel

public ImRPOATableModel()
Method Detail

setPOAs

public void setPOAs(POAInfo[] poas)
Pass in the POAs the POA table should display. Notify the JTable of this event.

Parameters:
poas - an array containing the POAs to display.

getRowCount

public int getRowCount()
Get the number of rows.

Returns:
int the number of rows of this table.

getColumnCount

public int getColumnCount()
Get the number of columns.

Returns:
int the number of columns of this table.

getColumnName

public java.lang.String getColumnName(int column)
Get the name of a specific column.

Parameters:
column - the columns number.
Returns:
the columns name.

getColumnClass

public java.lang.Class getColumnClass(int index)
Get the class of a specific column.

Parameters:
index - the columns index.
Returns:
the Class object for the column.

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Get the value of a specific table cell.

Parameters:
row - the cells row.
column - the cells column.
Returns:
Object the cells value.

getServerName

public java.lang.String getServerName()
Get the name of the server these POAs are associated with.

Returns:
a server name.