public class ProxyTableModel extends AbstractTableModel implements TableModelListener
TableModel
s. In a chain of data
manipulators some behavior is common.
ProxyTableModel
provides most of this behavior and
can be subclassed by filters that only need to override a handful
of specific methods. ProxyTableModel
implements
javax.swing.table.TableModel
by routing all requests
to its model, and
javax.swing.event.TableModelListener
by routing all
events to its listeners. Inserting a ProxyTableModel
which has not been subclassed into a chain of table filters should
have no effect.TableModel
,
TableSorter
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected TableModel |
model
The
TableModel that this model proxies for. |
listenerList
Constructor and Description |
---|
ProxyTableModel()
Construct a new
ProxyTableModel . |
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int col) |
int |
getColumnCount() |
String |
getColumnName(int col) |
TableModel |
getModel()
Get the
TableModel used by this map. |
int |
getRowCount() |
Object |
getValueAt(int row,
int col) |
boolean |
isCellEditable(int row,
int col) |
void |
setModel(TableModel model)
Set the
TableModel to use with this map. |
void |
setValueAt(Object value,
int row,
int col) |
void |
tableChanged(TableModelEvent e) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
protected TableModel model
TableModel
that this model proxies for.public ProxyTableModel()
ProxyTableModel
.public TableModel getModel()
TableModel
used by this map.public void setModel(TableModel model)
TableModel
to use with this map.model
- The TableModel
to use.public Object getValueAt(int row, int col)
getValueAt
in interface TableModel
public void setValueAt(Object value, int row, int col)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int col)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class getColumnClass(int col)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int row, int col)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void tableChanged(TableModelEvent e)
tableChanged
in interface TableModelListener
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses