edu.stanford.smi.protegex.owl.ui.clsdesc
Class PropertiesDefinitionTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.stanford.smi.protegex.owl.ui.owltable.AbstractOWLTableModel
edu.stanford.smi.protegex.owl.ui.clsdesc.PropertiesDefinitionTableModel
- All Implemented Interfaces:
- ClassDescriptionTableModel, OWLTableModel, Serializable, SymbolTableModel, TableModel
- public class PropertiesDefinitionTableModel
- extends AbstractOWLTableModel
- implements ClassDescriptionTableModel
A ClassDescriptionTableModel that displays those parts of a class definition
that are not restrictions. This implementation assumes that the edited class is
a defined class.
- Author:
- Holger Knublauch
- See Also:
- Serialized Form
Methods inherited from class edu.stanford.smi.protegex.owl.ui.owltable.AbstractOWLTableModel |
addEmptyRow, displaySemanticError, dispose, getClass, getClassRow, getColumnClass, getColumnCount, getColumnName, getEditedCls, getIcon, getRDFResource, getRowCount, getSubject, getSymbolColumnIndex, getValueAt, insertRow, isAddEnabledAt, isCellEditable, isEditable, refill, removeEmptyRow, setCls, setValueAt |
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 |
PropertiesDefinitionTableModel
public PropertiesDefinitionTableModel()
addRow
public boolean addRow(RDFSClass aClass,
int selectedRow)
- Specified by:
addRow
in interface OWLTableModel
addRows
protected void addRows()
- Description copied from class:
AbstractOWLTableModel
- This method completely fills the whole table and assumes that the rows list is empty.
- Overrides:
addRows
in class AbstractOWLTableModel
deleteRow
public void deleteRow(int index)
- Description copied from class:
AbstractOWLTableModel
- Deletes the superclass in a given row. This method does not only change the table contents
but also modifies the underlying ontology. The method completely removes the superclass
from the ontology if it was an anonymous class.
- Specified by:
deleteRow
in interface OWLTableModel
- Overrides:
deleteRow
in class AbstractOWLTableModel
- Parameters:
index
- the index of the row to delete
getDefinitionOperands
private Collection getDefinitionOperands()
getInsertRowIndex
protected int getInsertRowIndex(edu.stanford.smi.protege.model.Cls cls)
- Specified by:
getInsertRowIndex
in class AbstractOWLTableModel
getPredicate
public RDFProperty getPredicate(int row)
- Specified by:
getPredicate
in interface SymbolTableModel
isDeleteEnabledFor
public boolean isDeleteEnabledFor(RDFSClass cls)
- Specified by:
isDeleteEnabledFor
in interface OWLTableModel
isRemoveEnabledFor
public boolean isRemoveEnabledFor(edu.stanford.smi.protege.model.Cls cls)
- Specified by:
isRemoveEnabledFor
in interface ClassDescriptionTableModel
isSuitable
protected boolean isSuitable(edu.stanford.smi.protege.model.Cls cls)
- Description copied from class:
AbstractOWLTableModel
- Checks whether a given superclass shall be displayed or not.
- Specified by:
isSuitable
in class AbstractOWLTableModel
- Parameters:
cls
- the superclass to test
- Returns:
- true if the cls shall be listed in this table
setValueAt
protected void setValueAt(int rowIndex,
OWLModel owlModel,
String parsableText)
throws Exception
- Specified by:
setValueAt
in class AbstractOWLTableModel
- Throws:
Exception