public class REpiceaTableModel
extends javax.swing.table.DefaultTableModel
implements javax.swing.event.CellEditorListener
| Constructor and Description |
|---|
REpiceaTableModel(DataSet dataSet) |
REpiceaTableModel(java.lang.Object[] columnNames) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultRecord() |
void |
addRow(java.lang.Object[] record) |
void |
editingCanceled(javax.swing.event.ChangeEvent e) |
void |
editingStopped(javax.swing.event.ChangeEvent e) |
java.lang.Class<?> |
getColumnClass(int columnIndex) |
boolean |
isCellEditable(int row,
int column) |
void |
removeAll() |
void |
setEditableVetos(int columnIndex,
boolean veto)
By default, all the cells are editable.
|
addColumn, addColumn, addColumn, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAtaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic REpiceaTableModel(java.lang.Object[] columnNames)
public REpiceaTableModel(DataSet dataSet)
public void addRow(java.lang.Object[] record)
addRow in class javax.swing.table.DefaultTableModelpublic java.lang.Class<?> getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic void editingCanceled(javax.swing.event.ChangeEvent e)
editingCanceled in interface javax.swing.event.CellEditorListenerpublic void editingStopped(javax.swing.event.ChangeEvent e)
editingStopped in interface javax.swing.event.CellEditorListenerprotected void addDefaultRecord()
public void setEditableVetos(int columnIndex,
boolean veto)
columnIndex - the index of the columnveto - true to disable the editingpublic boolean isCellEditable(int row,
int column)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.DefaultTableModelpublic void removeAll()