org.globus.cog.gui.grapheditor.util.tables
Class IntrospectiveTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.globus.cog.gui.grapheditor.util.tables.IntrospectiveTableModel
- All Implemented Interfaces:
- PropertyChangeListener, Serializable, EventListener, TableModel
public class IntrospectiveTableModel
- extends AbstractTableModel
- implements TableModel, PropertyChangeListener
A table model that displays components and their properties. The collumns are
automatically generated based on the common properties of the contained
objects. If there are no common properties, nothing will be displayed.
- See Also:
- Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntrospectiveTableModel
public IntrospectiveTableModel(Collection objects)
IntrospectiveTableModel
public IntrospectiveTableModel()
setObjects
public void setObjects(Collection objects)
updateColumnList
protected void updateColumnList()
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface TableModel
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt
in interface TableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
isCellEditable
public boolean isCellEditable(int row,
int col)
- Specified by:
isCellEditable
in interface TableModel
- Overrides:
isCellEditable
in class AbstractTableModel
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChange
in interface PropertyChangeListener
repaintNode
public void repaintNode(NodeComponent component)
getColumns
public LinkedHashMap getColumns()
setColumns
public void setColumns(LinkedHashMap columns)