public class InteractiveTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
int |
m_hidden_index
Index of the hidden column
|
Constructor and Description |
---|
InteractiveTableModel(java.lang.String[] columnNames)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEmptyRow()
Adds an empty row to the model
|
java.lang.Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int column) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int row,
int column) |
boolean |
hasEmptyRow()
Returns true if the model has an empty row
|
boolean |
isCellEditable(int row,
int column) |
void |
setValueAt(java.lang.Object value,
int row,
int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public InteractiveTableModel(java.lang.String[] columnNames)
columnNames
- the names of the columnspublic java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row, int column)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public java.lang.Class<?> getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int column)
public void setValueAt(java.lang.Object value, int row, int column)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public int getRowCount()
public int getColumnCount()
public boolean hasEmptyRow()
public void addEmptyRow()