org.objectweb.fractal.explorer.attributes
Class AttributesTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.objectweb.fractal.explorer.attributes.AttributesTableModel
All Implemented Interfaces:
Serializable, TableModel

public class AttributesTableModel
extends AbstractTableModel

See Also:
AbstractTableModel, Serialized Form

Field Summary
static String[] MONITOR_ACTIONS
          MONITOR_ACTIONS .
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
AttributesTableModel(AttributeDescriptor[] attributes)
          A default constructor.
 
Method Summary
 AttributeDescriptor getAttributeDescriptor(int row)
          Returns an attribute descriptor corresponding to a given fow in the attributes table.
 AttributeDescriptor[] getAttributeDescriptors()
          Returns the table of attribute descriptors that build this attributes table model.
 Class getColumnClass(int column)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 int getRowCount()
           
 Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int column)
           
 void setValueAt(Object value, int row, int column)
           
 
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
 

Field Detail

MONITOR_ACTIONS

public static final String[] MONITOR_ACTIONS
MONITOR_ACTIONS .

Constructor Detail

AttributesTableModel

public AttributesTableModel(AttributeDescriptor[] attributes)
A default constructor.

Parameters:
attributes - a table of attribute descriptors used as a data source for this model.
Method Detail

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.