org.wcb.common
Class FontTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byorg.wcb.common.FontTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class FontTableModel
extends javax.swing.table.AbstractTableModel

Copyright (C) 2003 Walter Bogaardt This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 Project: Home Automation Interface Abstract: User Interface options dialog box Filename: $Id: FontTableModel.java,v 1.3 2004/07/22 03:06:50 wbogaardt Exp $ * $Log: FontTableModel.java,v $ * Revision 1.3 2004/07/22 03:06:50 wbogaardt * removed deprecated method calls. * * Revision 1.2 2003/12/30 22:15:59 wbogaardt * added javadoc comments *

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String[] columnNames
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
FontTableModel(java.lang.Object[][] fonts)
           
 
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

FontTableModel

public FontTableModel(java.lang.Object[][] fonts)
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.