|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel edu.jhu.tmaj.client.tables.data.GeneralTableModel edu.jhu.tmaj.client.tables.data.BeanTableModel edu.jhu.tmaj.client.tables.data.DynamicTableModel
public class DynamicTableModel
A TableModel that overrides isCellEditable() to ensure that irrelevant dynamic columns are not editable
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 |
---|
public DynamicTableModel(java.lang.String typeFieldName)
Method Detail |
---|
public boolean isCellEditable(int rowNumber, int columnNumber)
BeanTableModel
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class BeanTableModel
public static boolean isCellRelevant(javax.swing.JTable table, int row, int column)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |