edu.jhu.tmaj.client.tables.data
Class BeanTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.jhu.tmaj.client.tables.data.GeneralTableModel
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
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
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 |
BeanTableModel
public BeanTableModel()
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)