org.wcb.common
Class ColorTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.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
 
Constructor Summary
ColorTableModel(java.lang.Object[][] colors)
           
 
Method Summary
 java.lang.Class getColumnClass(int c)
          JTable uses this method to determine the default renderer/ editor for each cell.
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setValueAt(java.lang.Object value, int row, int col)
           
 
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
 

Field Detail

columnNames

final java.lang.String[] columnNames
Constructor Detail

ColorTableModel

public ColorTableModel(java.lang.Object[][] colors)
Method Detail

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.