GATE
Version 3.1-2270

gate.gui
Class OntologyEditor.DetailsTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by 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

Field Summary
protected  OntologyEditor.DetailsGroup allSubClasses
           
protected  OntologyEditor.DetailsGroup allSuperClasses
           
protected  OntologyEditor.DetailsGroup allTypes
           
static int COLUMN_COUNT
           
protected  OntologyEditor.DetailsGroup[] detailGroups
           
protected  OntologyEditor.DetailsGroup directSubClasses
           
protected  OntologyEditor.DetailsGroup directSuperClasses
           
protected  OntologyEditor.DetailsGroup directTypes
           
static int EXPANDED_COLUMN
           
protected  OntologyEditor.DetailsGroup instances
           
static int LABEL_COLUMN
           
protected  OntologyEditor.DetailsGroup properties
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
OntologyEditor.DetailsTableModel()
           
 
Method Summary
 Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
protected  Object getItemForRow(int rowIndex)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
protected  boolean mightPropertyApplyToClass(Property property, OClass aClass)
          Checks whether a property might apply to an instance of the provided class.
 void setItem(Object item)
          Used to set the current ontology item for which the details are shown.
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
           
 
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
 

Field Detail

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
Constructor Detail

OntologyEditor.DetailsTableModel

public OntologyEditor.DetailsTableModel()
Method Detail

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.

GATE
Version 3.1-2270