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

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
MWTableModel()
           
MWTableModel(uic.widgets.MWTable table)
          Convenience method to add a new model (which extends this class) to the table.
 
Method Summary
 Class getColumnClass(int col)
           
 
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
 

Constructor Detail

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.
Method Detail

getColumnClass

public Class getColumnClass(int col)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel


Copyright © 2002,2003 Thomas Zander