edu.stanford.smi.protegex.owl.ui.clsdesc
Class PropertiesSuperclassesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.stanford.smi.protegex.owl.ui.owltable.AbstractOWLTableModel
edu.stanford.smi.protegex.owl.ui.clsdesc.PropertiesSuperclassesTableModel
- All Implemented Interfaces:
- ClassDescriptionTableModel, OWLTableModel, Serializable, SymbolTableModel, TableModel
- public class PropertiesSuperclassesTableModel
- extends AbstractOWLTableModel
- implements ClassDescriptionTableModel
A ClassDescriptionTableModel that displays all direct superclasses that are
not restrictions. This implementation assumes that the edited class has
no equivalent classes.
- Author:
- Holger Knublauch
- See Also:
- Serialized Form
Methods inherited from class edu.stanford.smi.protegex.owl.ui.owltable.AbstractOWLTableModel |
addEmptyRow, addRows, deleteRow, 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 |
Methods inherited from interface edu.stanford.smi.protegex.owl.ui.owltable.OWLTableModel |
addEmptyRow, deleteRow, displaySemanticError, dispose, getClass, getClassRow, getEditedCls, isAddEnabledAt, isEditable, removeEmptyRow, setCls |
PropertiesSuperclassesTableModel
public PropertiesSuperclassesTableModel()
addRow
public boolean addRow(RDFSClass aClass,
int selectedRow)
- Specified by:
addRow
in interface OWLTableModel
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