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

Method Summary
 int addEmptyRow(int rowIndex)
           
 boolean addRow(RDFSClass aClass, int selectedRow)
           
 void deleteRow(int index)
           
 void displaySemanticError(String message)
          Displays an illegal assignment error dialog, e.g. through a JOptionPane.
 void dispose()
           
 RDFSClass getClass(int index)
           
 int getClassRow(RDFSClass cls)
           
 OWLNamedClass getEditedCls()
           
 boolean isAddEnabledAt(int rowIndex)
           
 boolean isDeleteEnabledFor(RDFSClass cls)
           
 boolean isEditable()
           
 void removeEmptyRow()
           
 void setCls(OWLNamedClass cls)
           
 
Methods inherited from interface edu.stanford.smi.protegex.owl.ui.owltable.SymbolTableModel
getIcon, getPredicate, getRDFResource, getSubject, getSymbolColumnIndex
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

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)