abbot.editor
Class ComponentPropertyModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--javax.swing.table.DefaultTableModel
              |
              +--abbot.editor.ComponentPropertyModel
All Implemented Interfaces:
Serializable, TableModel

class ComponentPropertyModel
extends DefaultTableModel

See Also:
Serialized Form

Field Summary
static int METHOD_OBJECT
           
static int PROPERTY_NAME
           
static int PROPERTY_VALUE
           
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ComponentPropertyModel()
          Create a model with two columns, the property name and the property value.
 
Method Summary
(package private) static void ()
           
 void clear()
           
(package private)  Method[] getPropertyMethods(Class cls, boolean filterMethods)
           
 Object getValueAt(int row, int col)
          Display the property name column apropriately.
 void setComponent(Component comp)
           
 void setComponent(Component comp, boolean filterMethods)
          Update the list of property methods based on the newly selected component.
static void setFilteredPropertyMethods(Class cls, String[] methods)
          Install the given filtered property method properties.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, insertRow, insertRow, isCellEditable, 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, getColumnClass, getListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_NAME

public static final int PROPERTY_NAME

PROPERTY_VALUE

public static final int PROPERTY_VALUE

METHOD_OBJECT

public static final int METHOD_OBJECT
Constructor Detail

ComponentPropertyModel

public ComponentPropertyModel()
Create a model with two columns, the property name and the property value.
Method Detail

static void ()

setFilteredPropertyMethods

public static void setFilteredPropertyMethods(Class cls,
                                              String[] methods)
Install the given filtered property method properties. Add-on ComponentTester classes should invoke this for the list of property methods they want to appear in the filtered property list.

clear

public void clear()

setComponent

public void setComponent(Component comp)

setComponent

public void setComponent(Component comp,
                         boolean filterMethods)
Update the list of property methods based on the newly selected component.

getPropertyMethods

Method[] getPropertyMethods(Class cls,
                            boolean filterMethods)

getValueAt

public Object getValueAt(int row,
                         int col)
Display the property name column apropriately.
Overrides:
getValueAt in class DefaultTableModel


Copyright © 2002-2003 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge