|
Protégé-OWL 3.4.1 | ||||||||
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.conditions.ConditionsTableModel
public class ConditionsTableModel
The TableModel used by the AssertedConditionsWidget.
Field Summary | |
---|---|
protected OWLNamedClass |
hostClass
The edited class |
protected List<ConditionsTableItem> |
items
One Item object for each row |
protected OWLModel |
owlModel
|
edu.stanford.smi.protege.model.Cls |
previouslyEditedCls
Needed to select the most recently edited row after closing the expression editor |
protected edu.stanford.smi.protege.model.Slot |
superclassesSlot
|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Fields inherited from interface edu.stanford.smi.protegex.owl.ui.conditions.ConditionsTableConstants |
---|
COL_COUNT, COL_EXPRESSION, TYPE_DEFINITION_BASE, TYPE_INHERITED, TYPE_SUPERCLASS |
Constructor Summary | |
---|---|
ConditionsTableModel(OWLModel owlModel)
Constructs a new ConditionsTableModel with default superslot. |
|
ConditionsTableModel(OWLNamedClass hostCls,
edu.stanford.smi.protege.model.Slot superclassesSlot)
Constructs a new ConditionsTableModel for a given Cls. |
|
ConditionsTableModel(edu.stanford.smi.protege.model.Slot superclassesSlot)
Constructs a new ConditionsTableModel with customized superslot. |
Method Summary | |
---|---|
int |
addEmptyDefinitionBlock()
|
int |
addEmptyRow(int selectedRow)
|
protected void |
addItem(int index,
ConditionsTableItem item)
|
boolean |
addRow(RDFSClass aClass,
int selectedRow)
Adds a given Cls to the class conditions specified by a given row. |
boolean |
addRowAllowMove(RDFSClass aClass,
int selectedRow)
|
void |
deleteRow(int index)
|
void |
deleteRow(int index,
boolean forceDelete)
|
void |
displaySemanticError(String message)
Displays an illegal assignment error dialog, e.g. |
void |
dispose()
|
void |
dumpItems()
|
protected void |
fillInheritedItems(Collection coveredClses)
|
int |
getBlockSize(int blockStartRow)
|
String |
getBlockText(int type)
Gets a string of the form |
RDFSClass |
getClass(int row)
Gets the RDFSClass displayed at a given row. |
int |
getClassRow(RDFSClass cls)
|
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
OWLIntersectionClass |
getDefinition(int rowIndex)
If a given row displays an operand from an equivalent class intersection, then this method returns the OWLIntersectionClass hosting it. |
OWLNamedClass |
getEditedCls()
|
Icon |
getIcon(int rowIndex,
int rowHeight)
|
Icon |
getIcon(RDFResource resource)
|
OWLNamedClass |
getOriginClass(int rowIndex)
Gets the class where the entry from a given row has been inherited from. |
RDFProperty |
getPredicate(int row)
|
RDFResource |
getRDFResource(int row)
|
int |
getRowCount()
|
RDFResource |
getSubject()
|
int |
getSymbolColumnIndex()
|
int |
getType(int rowIndex)
Gets the type of the entry at a certain row. |
Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isAddEnabledAt(int rowIndex)
Checks whether the "add named class" function is enabled for a given row. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isCreateEnabledAt(int row)
Checks whether an anonymous class could be added/created at a given row. |
boolean |
isDefinition(int rowIndex)
|
boolean |
isDeleteEnabledFor(RDFSClass cls)
|
boolean |
isEditable()
|
boolean |
isRemoveEnabledFor(int rowIndex)
|
boolean |
isSeparator(int rowIndex)
|
void |
refresh()
|
void |
removeEmptyRow()
|
void |
setCls(OWLNamedClass cls)
|
void |
setValueAt(int rowIndex,
OWLModel owlModel,
String parsableText)
|
void |
setValueAt(Object value,
int rowIndex,
int columnIndex)
|
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, 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, getColumnName, removeTableModelListener |
Field Detail |
---|
protected OWLNamedClass hostClass
protected List<ConditionsTableItem> items
protected OWLModel owlModel
public edu.stanford.smi.protege.model.Cls previouslyEditedCls
protected edu.stanford.smi.protege.model.Slot superclassesSlot
Constructor Detail |
---|
public ConditionsTableModel(OWLModel owlModel)
owlModel
- the OWLModelpublic ConditionsTableModel(edu.stanford.smi.protege.model.Slot superclassesSlot)
superclassesSlot
- the Slot (either inferred or asserted superclasses)public ConditionsTableModel(OWLNamedClass hostCls, edu.stanford.smi.protege.model.Slot superclassesSlot)
hostCls
- the initially displayed classsuperclassesSlot
- the Slot (either inferred or asserted superclasses)Method Detail |
---|
public int addEmptyDefinitionBlock()
public int addEmptyRow(int selectedRow)
addEmptyRow
in interface OWLTableModel
protected void addItem(int index, ConditionsTableItem item)
public boolean addRow(RDFSClass aClass, int selectedRow)
addRow
in interface OWLTableModel
aClass
- the aClassass to addselectedRow
- the row to add to
public boolean addRowAllowMove(RDFSClass aClass, int selectedRow)
public void deleteRow(int index)
deleteRow
in interface OWLTableModel
public void deleteRow(int index, boolean forceDelete)
public void displaySemanticError(String message)
OWLTableModel
displaySemanticError
in interface OWLTableModel
message
- the message textpublic void dispose()
dispose
in interface OWLTableModel
public void dumpItems()
protected void fillInheritedItems(Collection coveredClses)
public int getBlockSize(int blockStartRow)
public String getBlockText(int type)
type
- the type
public int getClassRow(RDFSClass cls)
getClassRow
in interface OWLTableModel
public RDFSClass getClass(int row)
getClass
in interface OWLTableModel
row
- the row to get the Class from
public int getColumnCount()
getColumnCount
in interface TableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public OWLIntersectionClass getDefinition(int rowIndex)
rowIndex
- the index of the row to get the OWLIntersectionClass from
public OWLNamedClass getEditedCls()
getEditedCls
in interface OWLTableModel
public Icon getIcon(RDFResource resource)
getIcon
in interface SymbolTableModel
public Icon getIcon(int rowIndex, int rowHeight)
public OWLNamedClass getOriginClass(int rowIndex)
rowIndex
- the index of the row to query
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 int getRowCount()
getRowCount
in interface TableModel
public int getType(int rowIndex)
rowIndex
- the index of the row to get the type of
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public boolean isAddEnabledAt(int rowIndex)
isAddEnabledAt
in interface OWLTableModel
rowIndex
- the index of the row where a named class shall be added
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public boolean isCreateEnabledAt(int row)
row
- the index of the row to add a new anonymous class
public boolean isDeleteEnabledFor(RDFSClass cls)
isDeleteEnabledFor
in interface OWLTableModel
public boolean isDefinition(int rowIndex)
public boolean isEditable()
isEditable
in interface OWLTableModel
public boolean isRemoveEnabledFor(int rowIndex)
public boolean isSeparator(int rowIndex)
public void refresh()
public void removeEmptyRow()
removeEmptyRow
in interface OWLTableModel
public void setCls(OWLNamedClass cls)
setCls
in interface OWLTableModel
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public void setValueAt(int rowIndex, OWLModel owlModel, String parsableText) throws Exception
Exception
|
Protégé-OWL 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |