gate.gui
Class OntologyEditor.DetailsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
gate.gui.OntologyEditor.DetailsTableModel
- All Implemented Interfaces:
- Serializable, TableModel
- Enclosing class:
- OntologyEditor
protected class OntologyEditor.DetailsTableModel
- extends AbstractTableModel
A model for the list object displaying the item details.
- 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 |
directSuperClasses
protected OntologyEditor.DetailsGroup directSuperClasses
allSuperClasses
protected OntologyEditor.DetailsGroup allSuperClasses
directSubClasses
protected OntologyEditor.DetailsGroup directSubClasses
allSubClasses
protected OntologyEditor.DetailsGroup allSubClasses
instances
protected OntologyEditor.DetailsGroup instances
properties
protected OntologyEditor.DetailsGroup properties
directTypes
protected OntologyEditor.DetailsGroup directTypes
allTypes
protected OntologyEditor.DetailsGroup allTypes
detailGroups
protected OntologyEditor.DetailsGroup[] detailGroups
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
OntologyEditor.DetailsTableModel
public OntologyEditor.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 aValue,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
getItemForRow
protected Object getItemForRow(int rowIndex)
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
setItem
public void setItem(Object item)
- Used to set the current ontology item for which the details are shown.
- Parameters:
item
- the item to be displayed.
mightPropertyApplyToClass
protected boolean mightPropertyApplyToClass(Property property,
OClass aClass)
- Checks whether a property might apply to an instance of the provided
class. This is indicative only as the correct decision can only be taken
based on the actual instances (in case the property requires domain values
to be members of several classes).
- Parameters:
instance
- the instance
- Returns:
- true if the property is valid for the instance.