uic.model
Class UICDefaultTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byjavax.swing.table.DefaultTableModel
          extended byuic.widgets.MWTableModel
              extended byuic.model.UICDefaultTableModel
All Implemented Interfaces:
Serializable, TableModel

public class UICDefaultTableModel
extends MWTableModel

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
UICDefaultTableModel()
           
UICDefaultTableModel(MWTable table)
          Deprecated.  
UICDefaultTableModel(UICTable table)
          Convenience method to add a new model (which extends this class) to the table.
 
Method Summary
 Class getColumnClass(int col)
          Deprectated class since the original has been renamed to UICDefaultTableModel.
 boolean isCellEditable(int row, int column)
          Only booleans are editable
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, 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

UICDefaultTableModel

public UICDefaultTableModel()

UICDefaultTableModel

public UICDefaultTableModel(UICTable 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.

UICDefaultTableModel

public UICDefaultTableModel(MWTable table)
Deprecated.  

Provided for backwards compatibility.

Method Detail

getColumnClass

public Class getColumnClass(int col)
Description copied from class: MWTableModel
Deprectated class since the original has been renamed to UICDefaultTableModel.

Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class MWTableModel
See Also:
UICDefaultTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Only booleans are editable

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class MWTableModel
See Also:
UICDefaultTableModel


Copyright © 2002,2003 Thomas Zander Available under the Free Apache licence