org.wcb.common
Class ColorTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.wcb.common.ColorTableModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.table.TableModel
- public class ColorTableModel
- extends javax.swing.table.AbstractTableModel
Created by IntelliJ IDEA.
User: 00u2583
Date: Dec 30, 2003
Time: 1:43:10 PM
To change this template use Options | File Templates.
- See Also:
- Serialized Form
Field Summary |
(package private) java.lang.String[] |
columnNames
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
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 |
columnNames
final java.lang.String[] columnNames
ColorTableModel
public ColorTableModel(java.lang.Object[][] colors)
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getColumnName
public java.lang.String getColumnName(int col)
getValueAt
public java.lang.Object getValueAt(int row,
int col)
setValueAt
public void setValueAt(java.lang.Object value,
int row,
int col)
getColumnClass
public java.lang.Class getColumnClass(int c)
- JTable uses this method to determine the default renderer/
editor for each cell.
isCellEditable
public boolean isCellEditable(int row,
int col)
Copyright © 1999-2004 Walter Bogaardt. All Rights Reserved.