abbot.editor
Class ComponentPropertyModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by abbot.editor.ComponentPropertyModel
All Implemented Interfaces:
Serializable, TableModel

 class ComponentPropertyModel
extends DefaultTableModel


Field Summary
static int ACCESSIBLE
           
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
 void clear()
           
(package private)  Method[] getPropertyMethods(Class cls, boolean filter)
           
 Object getValueAt(int row, int col)
          Display the property name column apropriately.
 boolean isCellEditable(int row, int col)
           
 void setComponent(Component comp)
           
 void setComponent(Component comp, boolean filter)
          Update the list of property methods based on the newly selected component.
static void setFilteredPropertyMethods(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, 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, getTableModelListeners, 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
See Also:
Constant Field Values

PROPERTY_VALUE

public static final int PROPERTY_VALUE
See Also:
Constant Field Values

ACCESSIBLE

public static final int ACCESSIBLE
See Also:
Constant Field Values

METHOD_OBJECT

public static final int METHOD_OBJECT
See Also:
Constant Field Values
Constructor Detail

ComponentPropertyModel

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

Method Detail

setFilteredPropertyMethods

public static void setFilteredPropertyMethods(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 filter)
Update the list of property methods based on the newly selected component.


getPropertyMethods

Method[] getPropertyMethods(Class cls,
                            boolean filter)

isCellEditable

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

getValueAt

public Object getValueAt(int row,
                         int col)
Display the property name column apropriately.

Specified by:
getValueAt in interface TableModel
Overrides:
getValueAt in class DefaultTableModel


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

SourceForge