public class InteractiveTableModel extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
int |
m_hidden_index
Index of the hidden column
|
| Constructor and Description |
|---|
InteractiveTableModel(String[] columnNames)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEmptyRow()
Adds an empty row to the model
|
Class<?> |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
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(Object value,
int row,
int column) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic InteractiveTableModel(String[] columnNames)
columnNames - the names of the columnspublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic Class<?> getColumnClass(int column)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic Object getValueAt(int row, int column)
public void setValueAt(Object value, int row, int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic int getRowCount()
public int getColumnCount()
public boolean hasEmptyRow()
public void addEmptyRow()
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.