Class Uneditable_Table_Model

  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by HiRISE.HiCat.Utilities.Uneditable_Table_Model
All Implemented Interfaces:
Serializable, TableModel

public class Uneditable_Table_Model
extends DefaultTableModel

This is a trivial extension of the DefaultTableModel class that returns a Table Model where none of the cells are editible. This kind of model is used frequently in the HiCat database applications, where data tables need to be displayed, but none of the cells should be editable.

Rodney Heyd UA/PIRL
See Also:
Serialized Form

Field Summary
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
Fields inherited from class javax.swing.table.AbstractTableModel
Constructor Summary
Uneditable_Table_Model(Vector<Vector<String>> data, Vector<String> column_names)
Method Summary
 boolean isCellEditable(int row, int column)
          This method overrides the isCellEditable method in the DefaultTableModel to force all cells to not be 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


public Uneditable_Table_Model(Vector<Vector<String>> data,
                              Vector<String> column_names)
Method Detail


public boolean isCellEditable(int row,
                              int column)
This method overrides the isCellEditable method in the DefaultTableModel to force all cells to not be editable.

Specified by:
isCellEditable in interface TableModel
isCellEditable in class DefaultTableModel
false - always


Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona