fdda.dialog.swing.properties
Class ObjTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--fdda.dialog.swing.properties.ObjTableModel
All Implemented Interfaces:
Serializable, TableModel

public class ObjTableModel
extends AbstractTableModel

The table model for the table of the object inspector. Holds names of the properties in one column and values in the other column.

Author:
Jörg Rüdenauer
See Also:
Serialized Form

Field Summary
protected static String[] COLUMN_NAME
          column headers
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ObjTableModel()
          default constructor
 
Method Summary
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 void setAllValues(Iterator properties)
          Fills the model with the values
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_NAME

protected static final String[] COLUMN_NAME
column headers

Constructor Detail

ObjTableModel

public ObjTableModel()
default constructor

Method Detail

getColumnCount

public int getColumnCount()

getValueAt

public Object getValueAt(int row,
                         int column)

getRowCount

public int getRowCount()

setAllValues

public void setAllValues(Iterator properties)
Fills the model with the values

Parameters:
properties - iterator over the properties

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.