Version: 1.1.1

org.inb.biomoby.central.gui.model
Class MobyObjectPropertiesTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.inb.biomoby.central.gui.model.MobyPropertiesTableModel
          extended by org.inb.biomoby.central.gui.model.MobyObjectPropertiesTableModel
All Implemented Interfaces:
Serializable, TableModel, ModelListener<ObjectType>

public class MobyObjectPropertiesTableModel
extends MobyPropertiesTableModel
implements ModelListener<ObjectType>

Author:
Dmitry Repchevsky
See Also:
Serialized Form

Constructor Summary
MobyObjectPropertiesTableModel(AbstractModel<ObjectType> model)
           
 
Method Summary
 void addProperties(ObjectType clazz)
           
 Relationship<ObjectType> addProperty(ObjectType property)
          Method to add a property into the table model
 void clear()
           
 ObjectType getClazz()
           
 AbstractModel<ObjectType> getModel()
           
 boolean isCellEditable(int rowIndex, int columnIndex)
          Method allows to edit only those properties that belong to the editing object.
 void modelCleared()
           
 void modelObjectChanged(ObjectType objectType1, ObjectType objectType2)
           
 void modelObjectInserted(ObjectType objectType)
           
 void modelObjectRemoved(ObjectType objectType)
           
 Relationship<ObjectType> remove(int row)
           
 void setClazz(ObjectType objectType)
           
 void setValueAt(Object value, int rowIndex, int columnIndex)
           
 
Methods inherited from class org.inb.biomoby.central.gui.model.MobyPropertiesTableModel
get, getColumnClass, getColumnCount, getRowCount, getValueAt, isValid
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobyObjectPropertiesTableModel

public MobyObjectPropertiesTableModel(AbstractModel<ObjectType> model)
Method Detail

getModel

public AbstractModel<ObjectType> getModel()

setClazz

public void setClazz(ObjectType objectType)

getClazz

public ObjectType getClazz()

clear

public void clear()
Overrides:
clear in class MobyPropertiesTableModel

addProperty

public Relationship<ObjectType> addProperty(ObjectType property)
Method to add a property into the table model

Overrides:
addProperty in class MobyPropertiesTableModel
Parameters:
property -
Returns:

addProperties

public void addProperties(ObjectType clazz)
Overrides:
addProperties in class MobyPropertiesTableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Method allows to edit only those properties that belong to the editing object. This means that all the properties in a table model that, possibly, inhereted from a parent object are not editable.

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class MobyPropertiesTableModel

setValueAt

public void setValueAt(Object value,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class MobyPropertiesTableModel

remove

public Relationship<ObjectType> remove(int row)
Overrides:
remove in class MobyPropertiesTableModel

modelCleared

public void modelCleared()
Specified by:
modelCleared in interface ModelListener<ObjectType>

modelObjectInserted

public void modelObjectInserted(ObjectType objectType)
Specified by:
modelObjectInserted in interface ModelListener<ObjectType>

modelObjectRemoved

public void modelObjectRemoved(ObjectType objectType)
Specified by:
modelObjectRemoved in interface ModelListener<ObjectType>

modelObjectChanged

public void modelObjectChanged(ObjectType objectType1,
                               ObjectType objectType2)
Specified by:
modelObjectChanged in interface ModelListener<ObjectType>

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010