uic.model
Class UICDefaultTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by uic.model.UICDefaultTableModel
All Implemented Interfaces:
Serializable, TableModel

public class UICDefaultTableModel
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
UICDefaultTableModel()
           
UICDefaultTableModel(UICTable table)
          Convenience method to add a new model (which extends this class) to the table.
 
Method Summary
 Class getColumnClass(int col)
           
 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.
Method Detail

getColumnClass

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

isCellEditable

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

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class DefaultTableModel


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence