edu.stanford.smi.protegex.owl.swrl.ui.table
Class SWRLTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.stanford.smi.protegex.owl.swrl.ui.table.SWRLTableModel
- All Implemented Interfaces:
- edu.stanford.smi.protege.util.Disposable, Serializable, SymbolTableModel, TableModel
- public class SWRLTableModel
- extends AbstractTableModel
- implements edu.stanford.smi.protege.util.Disposable, SymbolTableModel
- Author:
- Holger Knublauch
- See Also:
- Serialized Form
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 |
COL_NAME
public static final int COL_NAME
- See Also:
- Constant Field Values
COL_EXPRESSION
public static final int COL_EXPRESSION
- See Also:
- Constant Field Values
COL_COUNT
public static final int COL_COUNT
- See Also:
- Constant Field Values
clsListener
private ClassListener clsListener
imps
private List imps
rdfResource
private RDFResource rdfResource
owlModel
private OWLModel owlModel
SWRLTableModel
public SWRLTableModel(OWLModel owlModel)
SWRLTableModel
public SWRLTableModel(RDFResource resource)
addReferencingImps
private void addReferencingImps(RDFResource rdfResource)
dispose
public void dispose()
- Specified by:
dispose
in interface edu.stanford.smi.protege.util.Disposable
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interface TableModel
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interface TableModel
getIcon
public Icon getIcon(RDFResource resource)
- Specified by:
getIcon
in interface SymbolTableModel
getImp
public SWRLImp getImp(int row)
getPredicate
public RDFProperty getPredicate(int row)
- Specified by:
getPredicate
in interface SymbolTableModel
getRDFResource
public RDFResource getRDFResource(int row)
- Specified by:
getRDFResource
in interface SymbolTableModel
getSubject
public RDFResource getSubject()
- Specified by:
getSubject
in interface SymbolTableModel
getRowFor
private int getRowFor(SWRLImp imp)
getSymbolColumnIndex
public int getSymbolColumnIndex()
- Specified by:
getSymbolColumnIndex
in interface SymbolTableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount
in interface TableModel
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt
in interface TableModel
indexOf
public int indexOf(SWRLImp imp)
initClsListener
private void initClsListener()
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable
in interface TableModel
isSuitable
private boolean isSuitable(SWRLImp imp)
perhapsAdd
private void perhapsAdd(SWRLImp imp)
perhapsRemove
private void perhapsRemove(SWRLImp imp)
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt
in interface TableModel
setRowOf
public void setRowOf(SWRLImp imp,
int index)
sortImps
private void sortImps()