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
Constructor Summary |
ComponentPropertyModel()
Create a model with two columns, the property name and the property
value. |
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 |
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
ComponentPropertyModel
public ComponentPropertyModel()
- Create a model with two columns, the property name and the property
value.
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