edu.jhu.tmaj.client.tables.data
Class BeanTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by edu.jhu.tmaj.client.tables.data.GeneralTableModel
          extended by edu.jhu.tmaj.client.tables.data.BeanTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
DynamicTableModel

public class BeanTableModel
extends GeneralTableModel

A TableModel that overrides isCellEditable() to ensure that deleted rows and the first column are not editable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
BeanTableModel()
           
 
Method Summary
 java.lang.Class getColumnClass(int columnNumber)
           
 boolean isCellEditable(int row, int column)
          Returns false if the row has been deleted or the column number is zero; otherwise, returns true.
static boolean isRowDeleted(javax.swing.table.TableModel tableModel, int row)
           
 void setChangedCells(ChangedCells changedCells)
           
 void setEditingDisabled(boolean isEditingDisabled)
           
 
Methods inherited from class edu.jhu.tmaj.client.tables.data.GeneralTableModel
addRow, clearRows, convertListOfMaps_TO_ListOfTabDelimitedStrings, convertToListOfTabDelimitedStrings, findColumn, getColumnCount, getColumnIdentifiers, getColumnName, getDataList, getNumberedList, getRowCount, getValueAt, removeRow, setColumnIdentifiers, setData, setDataList, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, 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

BeanTableModel

public BeanTableModel()
Method Detail

setChangedCells

public final void setChangedCells(ChangedCells changedCells)

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Returns false if the row has been deleted or the column number is zero; otherwise, returns true.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class GeneralTableModel

isRowDeleted

public static boolean isRowDeleted(javax.swing.table.TableModel tableModel,
                                   int row)

getColumnClass

public final java.lang.Class getColumnClass(int columnNumber)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

setEditingDisabled

public void setEditingDisabled(boolean isEditingDisabled)