|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
edu.stanford.smi.protegex.owl.ui.clsdesc.DisjointClassesTableModel
An AbstractTableModel that represents each disjoint class with one row. Its contents is automatically synchronized with the given Cls.
Field Summary | |
private OWLNamedClass |
cls
The currently edited class |
private List |
rows
The List of RDFSClass instances in the table, sorted by rows |
private PropertyValueListener |
valueListener
The FrameListener that detects changes in the disjoint classes own slot of the Cls |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
DisjointClassesTableModel()
|
Method Summary | |
private void |
addDisjointClass(RDFSClass rdfsClass)
|
int |
addEmptyRow(int rowIndex)
|
boolean |
addRow(RDFSClass rdfsClass,
int rowIndex)
|
private void |
addRows()
Adds the rows to represent all disjoint classes on the given class. |
(package private) void |
clearRows()
Removes all rows from the table. |
void |
deleteRow(int index)
|
void |
displaySemanticError(String message)
Displays an illegal assignment error dialog, e.g. through a JOptionPane. |
void |
dispose()
Clears any dangling listeners. |
RDFSClass |
getClass(int rowIndex)
|
int |
getClassRow(RDFSClass cls)
|
(package private) edu.stanford.smi.protege.model.Cls |
getCls()
|
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int column)
|
OWLNamedClass |
getEditedCls()
|
Icon |
getIcon(RDFResource resource)
|
RDFProperty |
getPredicate(int row)
|
RDFResource |
getRDFResource(int row)
|
(package private) int |
getRow(edu.stanford.smi.protege.model.Cls superCls)
|
int |
getRowCount()
|
RDFResource |
getSubject()
|
int |
getSymbolColumnIndex()
|
Object |
getValueAt(int rowIndex,
int columnIndex)
|
private void |
insertRow(RDFSClass rdfsClass)
|
boolean |
isAddEnabledAt(int rowIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isDeleteEnabledFor(RDFSClass cls)
|
boolean |
isEditable()
|
boolean |
isRemoveEnabledFor(edu.stanford.smi.protege.model.Cls otherClass)
|
void |
removeEmptyRow()
|
private void |
removeListeners()
|
void |
setCls(OWLNamedClass newCls)
|
void |
setValueAt(Object value,
int rowIndex,
int columnIndex)
|
private void |
setValueAt(RDFSClass newClass,
RDFSClass oldClass)
|
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 javax.swing.table.TableModel |
addTableModelListener, removeTableModelListener |
Field Detail |
private OWLNamedClass cls
private List rows
private PropertyValueListener valueListener
Constructor Detail |
public DisjointClassesTableModel()
Method Detail |
public int addEmptyRow(int rowIndex)
addEmptyRow
in interface OWLTableModel
public boolean addRow(RDFSClass rdfsClass, int rowIndex)
addRow
in interface OWLTableModel
private void addDisjointClass(RDFSClass rdfsClass)
private void addRows()
void clearRows()
public void deleteRow(int index)
deleteRow
in interface OWLTableModel
public void displaySemanticError(String message)
OWLTableModel
displaySemanticError
in interface OWLTableModel
message
- the message textpublic void dispose()
dispose
in interface OWLTableModel
edu.stanford.smi.protege.model.Cls getCls()
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
public RDFSClass getClass(int rowIndex)
getClass
in interface OWLTableModel
public int getClassRow(RDFSClass cls)
getClassRow
in interface OWLTableModel
public OWLNamedClass getEditedCls()
getEditedCls
in interface OWLTableModel
public RDFProperty getPredicate(int row)
getPredicate
in interface SymbolTableModel
public RDFResource getRDFResource(int row)
getRDFResource
in interface SymbolTableModel
public RDFResource getSubject()
getSubject
in interface SymbolTableModel
public int getSymbolColumnIndex()
getSymbolColumnIndex
in interface SymbolTableModel
public Icon getIcon(RDFResource resource)
getIcon
in interface SymbolTableModel
int getRow(edu.stanford.smi.protege.model.Cls superCls)
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
private void insertRow(RDFSClass rdfsClass)
public boolean isAddEnabledAt(int rowIndex)
isAddEnabledAt
in interface OWLTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
public boolean isDeleteEnabledFor(RDFSClass cls)
isDeleteEnabledFor
in interface OWLTableModel
public boolean isEditable()
isEditable
in interface OWLTableModel
public boolean isRemoveEnabledFor(edu.stanford.smi.protege.model.Cls otherClass)
isRemoveEnabledFor
in interface ClassDescriptionTableModel
public void removeEmptyRow()
removeEmptyRow
in interface OWLTableModel
private void removeListeners()
public void setCls(OWLNamedClass newCls)
setCls
in interface OWLTableModel
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
private void setValueAt(RDFSClass newClass, RDFSClass oldClass)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |