org.inb.biomoby.central.gui.model
Class MobyObjectPropertiesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.inb.biomoby.central.gui.model.MobyPropertiesTableModel
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
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
MobyObjectPropertiesTableModel
public MobyObjectPropertiesTableModel(AbstractModel<ObjectType> model)
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>
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010