gov.nih.nlm.swing
Class NoEditTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byjavax.swing.table.DefaultTableModel
          extended bygov.nih.nlm.swing.NoEditTableModel
All Implemented Interfaces:
Serializable, TableModel

public class NoEditTableModel
extends DefaultTableModel

DefaultTableModel that is not editable.

Author:
Brian Carlsen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
NoEditTableModel()
          Instantiates an empty NoEditTableModel.
NoEditTableModel(Object[][] data, Object[] headers)
          Instantiates a NoEditTableModel with the specified data and headers.
NoEditTableModel(Object[] headers, int rows)
          Instantiates a NoEditTableModel with the specified data and headers.
NoEditTableModel(Vector data, int rows)
          Instantiates a NoEditTableModel with the specified data and row count.
NoEditTableModel(Vector data, Vector headers)
          Instantiates a NoEditTableModel with the specified data and headers.
 
Method Summary
 boolean isCellEditable(int row, int col)
          Indicates that cells are NOT editable.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoEditTableModel

public NoEditTableModel()
Instantiates an empty NoEditTableModel.


NoEditTableModel

public NoEditTableModel(Object[][] data,
                        Object[] headers)
Instantiates a NoEditTableModel with the specified data and headers.

Parameters:
data - An Object[][] containing table data
headers - An Object[] containing column headers

NoEditTableModel

public NoEditTableModel(Object[] headers,
                        int rows)
Instantiates a NoEditTableModel with the specified data and headers.

Parameters:
headers - An Object[] containing column headers
rows - An int row count

NoEditTableModel

public NoEditTableModel(Vector data,
                        int rows)
Instantiates a NoEditTableModel with the specified data and row count.

Parameters:
data - An Vector containing table data
rows - An int row count

NoEditTableModel

public NoEditTableModel(Vector data,
                        Vector headers)
Instantiates a NoEditTableModel with the specified data and headers.

Parameters:
data - An Vector containing table data
headers - An Vector containing column headers
Method Detail

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Indicates that cells are NOT editable.

Parameters:
row - the row index
col - the column index
Returns:
false.


Copyright ©2005