gate.gui.ontology
Class DetailsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
gate.gui.ontology.DetailsTableModel
- All Implemented Interfaces:
- Serializable, TableModel
public class DetailsTableModel
- extends AbstractTableModel
A DataModel that is created when a node is selected in the ontology
tree. It contains information such as direct/all sub/super classes,
equivalent classes, instances, properties/ property values and so on.
The information from this model is then shown in the right hand side
panel of the ontology editor.
- Author:
- niraj
- 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 |
resourceInfo
protected DetailsGroup resourceInfo
directSuperClasses
protected DetailsGroup directSuperClasses
allSuperClasses
protected DetailsGroup allSuperClasses
directSubClasses
protected DetailsGroup directSubClasses
allSubClasses
protected DetailsGroup allSubClasses
equivalentClasses
protected DetailsGroup equivalentClasses
sameAsInstances
protected DetailsGroup sameAsInstances
instances
protected DetailsGroup instances
propertyTypes
protected DetailsGroup propertyTypes
propertyValues
protected DetailsGroup propertyValues
directTypes
protected DetailsGroup directTypes
allTypes
protected DetailsGroup allTypes
detailGroups
protected DetailsGroup[] detailGroups
ontology
protected Ontology ontology
oResource
protected OResource oResource
ontologyMode
protected boolean ontologyMode
COLUMN_COUNT
public static final int COLUMN_COUNT
- See Also:
- Constant Field Values
EXPANDED_COLUMN
public static final int EXPANDED_COLUMN
- See Also:
- Constant Field Values
LABEL_COLUMN
public static final int LABEL_COLUMN
- See Also:
- Constant Field Values
VALUE_COLUMN
public static final int VALUE_COLUMN
- See Also:
- Constant Field Values
DELETE_COLUMN
public static final int DELETE_COLUMN
- See Also:
- Constant Field Values
itemComparator
protected OntologyItemComparator itemComparator
DetailsTableModel
public DetailsTableModel()
getColumnCount
public int getColumnCount()
getRowCount
public int getRowCount()
getColumnName
public String getColumnName(int column)
- Specified by:
getColumnName
in interface TableModel
- Overrides:
getColumnName
in class AbstractTableModel
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interface TableModel
- Overrides:
getColumnClass
in class AbstractTableModel
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable
in interface TableModel
- Overrides:
isCellEditable
in class AbstractTableModel
setValueAt
public void setValueAt(Object value,
int row,
int col)
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
getItemForRow
protected Object getItemForRow(int row)
setItemForRow
protected void setItemForRow(int row,
Object value)
getValueAt
public Object getValueAt(int row,
int col)
setItem
public void setItem(OResource oResource)
getItem
public OResource getItem()
getOntology
public Ontology getOntology()
setOntology
public void setOntology(Ontology ontology)