edu.stanford.smi.protegex.owl.ui.owltable
Interface OWLTableModel
- All Superinterfaces:
- SymbolTableModel, TableModel
- All Known Subinterfaces:
- ClassDescriptionTableModel
- All Known Implementing Classes:
- AbstractOWLTableModel, ConditionsTableModel, DisjointClassesTableModel, PropertiesDefinitionTableModel, PropertiesSuperclassesTableModel, UnionRangeClassesTableModel
- public interface OWLTableModel
- extends SymbolTableModel
The base TableModel for all OWLTables. This defines those methods that are common
to all TableModel implementations (ConditionsTableModel, EquivalentClassesTableModel,
SuperclassesTableModel, RestrictionsTableModel, and DisjointClassesTableModel).
- Author:
- Holger Knublauch
addRow
public boolean addRow(RDFSClass aClass,
int selectedRow)
addEmptyRow
public int addEmptyRow(int rowIndex)
deleteRow
public void deleteRow(int index)
displaySemanticError
public void displaySemanticError(String message)
- Displays an illegal assignment error dialog, e.g. through a JOptionPane.
This can be used if someone tries to assign an illegal superclass to the model.
- Parameters:
message
- the message text
dispose
public void dispose()
getClass
public RDFSClass getClass(int index)
getClassRow
public int getClassRow(RDFSClass cls)
getEditedCls
public OWLNamedClass getEditedCls()
isAddEnabledAt
public boolean isAddEnabledAt(int rowIndex)
isDeleteEnabledFor
public boolean isDeleteEnabledFor(RDFSClass cls)
isEditable
public boolean isEditable()
removeEmptyRow
public void removeEmptyRow()
setCls
public void setCls(OWLNamedClass cls)