org.objectweb.fractal.explorer.attributes
Class AttributesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.objectweb.fractal.explorer.attributes.AttributesTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class AttributesTableModel
- extends AbstractTableModel
- See Also:
AbstractTableModel
,
Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MONITOR_ACTIONS
public static final String[] MONITOR_ACTIONS
MONITOR_ACTIONS
.
AttributesTableModel
public AttributesTableModel(AttributeDescriptor[] attributes)
- A default constructor.
- Parameters:
attributes
- a table of attribute descriptors used as a data source for
this model.
getColumnCount
public int getColumnCount()
- See Also:
TableModel.getColumnCount()
getRowCount
public int getRowCount()
- See Also:
TableModel.getRowCount()
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
- See Also:
AbstractTableModel.getColumnName(int)
getValueAt
public Object getValueAt(int row,
int column)
- See Also:
TableModel.getValueAt(int, int)
getColumnClass
public Class getColumnClass(int column)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
- See Also:
AbstractTableModel.getColumnClass(int)
isCellEditable
public boolean isCellEditable(int row,
int column)
- Specified by:
isCellEditable
in interface TableModel
- Overrides:
isCellEditable
in class AbstractTableModel
- See Also:
AbstractTableModel.isCellEditable(int, int)
setValueAt
public void setValueAt(Object value,
int row,
int column)
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
- See Also:
AbstractTableModel.setValueAt(Object, int, int)
getAttributeDescriptors
public AttributeDescriptor[] getAttributeDescriptors()
- Returns the table of attribute descriptors that build this attributes
table model.
- Returns:
- attributes a table of attribute descriptors.
getAttributeDescriptor
public AttributeDescriptor getAttributeDescriptor(int row)
- Returns an attribute descriptor corresponding to a given fow in the
attributes table.
- Parameters:
row
- the row of the attributes table.
- Returns:
- an attribute descriptor corresponding to the given row in the
attributes table.