|
|||||||||||
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.classform.component.property.PropertyFormTableModel
A TableModel displaying one column containing the fillers of someValuesFrom restrictions at a given class/property pair.
Field Summary | |
static int |
COL_FILLER
The index of the column holding the classes/fillers. |
private RDFSClass |
definition
If this is represents a definition (equivalent class), then this field points to it. |
private ClassListener |
listener
|
private OWLNamedClass |
namedClass
The OWLNamedClass hosting the restrictions |
private RDFProperty |
property
The property being (possibly) restricted |
private List |
restrictions
|
private List |
rows
The list of resources displayed as main contents (fillers of existential restrictions) |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
PropertyFormTableModel(OWLNamedClass namedClass,
RDFProperty property)
Constructs a new PropertyFormTableModel with no definition (only necessary conditions). |
|
PropertyFormTableModel(OWLNamedClass namedClass,
RDFProperty property,
RDFSClass definition)
Creates a new PropertyFormTableModel with an (optional) definition. |
Method Summary | |
private void |
addRows()
|
void |
dispose()
|
Class |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
Icon |
getIcon(RDFResource resource)
|
OWLNamedClass |
getNamedClass()
|
RDFProperty |
getPredicate(int row)
|
RDFProperty |
getProperty()
|
RDFResource |
getRDFResource(int row)
|
List |
getRDFResources()
|
OWLExistentialRestriction |
getRestriction(int row)
|
int |
getRowCount()
|
RDFResource |
getSubject()
|
int |
getSymbolColumnIndex()
|
Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
private Iterator |
listRestrictions()
|
private void |
refill()
|
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
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, setValueAt |
Field Detail |
public static final int COL_FILLER
private List rows
private List restrictions
private RDFSClass definition
private ClassListener listener
private OWLNamedClass namedClass
private RDFProperty property
Constructor Detail |
public PropertyFormTableModel(OWLNamedClass namedClass, RDFProperty property)
namedClass
- the named class hosting the tableproperty
- the property being shownpublic PropertyFormTableModel(OWLNamedClass namedClass, RDFProperty property, RDFSClass definition)
namedClass
- the named class hosting the tableproperty
- the property being showndefinition
- the definition or nullMethod Detail |
private void addRows()
public void dispose()
dispose
in interface edu.stanford.smi.protege.util.Disposable
public int getColumnCount()
getColumnCount
in interface TableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
public Icon getIcon(RDFResource resource)
getIcon
in interface SymbolTableModel
public OWLNamedClass getNamedClass()
public RDFProperty getPredicate(int row)
getPredicate
in interface SymbolTableModel
public RDFProperty getProperty()
public RDFResource getRDFResource(int row)
getRDFResource
in interface SymbolTableModel
public RDFResource getSubject()
getSubject
in interface SymbolTableModel
public List getRDFResources()
public OWLExistentialRestriction getRestriction(int row)
public int getRowCount()
getRowCount
in interface TableModel
public int getSymbolColumnIndex()
getSymbolColumnIndex
in interface SymbolTableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
private Iterator listRestrictions()
private void refill()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |