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

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
              extended by edu.jhu.tmaj.client.tables.data.DynamicTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class DynamicTableModel
extends BeanTableModel

A TableModel that overrides isCellEditable() to ensure that irrelevant dynamic columns are not editable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DynamicTableModel(java.lang.String typeFieldName)
           
 
Method Summary
 boolean isCellEditable(int rowNumber, int columnNumber)
          Returns false if the row has been deleted or the column number is zero; otherwise, returns true.
static boolean isCellRelevant(javax.swing.JTable table, int row, int column)
           
 
Methods inherited from class edu.jhu.tmaj.client.tables.data.BeanTableModel
getColumnClass, isRowDeleted, setChangedCells, setEditingDisabled
 
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

DynamicTableModel

public DynamicTableModel(java.lang.String typeFieldName)
Method Detail

isCellEditable

public boolean isCellEditable(int rowNumber,
                              int columnNumber)
Description copied from class: BeanTableModel
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 BeanTableModel

isCellRelevant

public static boolean isCellRelevant(javax.swing.JTable table,
                                     int row,
                                     int column)