uic.widgets
Class MWTableModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--javax.swing.table.DefaultTableModel
|
+--uic.widgets.MWTableModel
- All Implemented Interfaces:
- Serializable, TableModel
- public class MWTableModel
- extends DefaultTableModel
This class does nothing but implement a bugfix for the defaultTableModel.
It is needed when you put non-string items in your table and want them rendered
properly.
- See Also:
- Serialized Form
|
Constructor Summary |
MWTableModel()
|
MWTableModel(uic.widgets.MWTable table)
Convenience method to add a new model (which extends this class) to the table. |
| Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, 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 |
MWTableModel
public MWTableModel()
MWTableModel
public MWTableModel(uic.widgets.MWTable table)
- Convenience method to add a new model (which extends this class) to the table.
This constructor will try to keep the current models attached to the table so it
will only replace the data-model.
- Parameters:
table - the MWTable that this model will use.
getColumnClass
public Class getColumnClass(int col)
- Specified by:
getColumnClass in interface TableModel- Overrides:
getColumnClass in class AbstractTableModel
Copyright © 2002,2003 Thomas Zander