gate.gui.ontology
Class DetailsTableModel

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

Field Summary
protected  DetailsGroup allSubClasses
           
protected  DetailsGroup allSuperClasses
           
protected  DetailsGroup allTypes
           
static int COLUMN_COUNT
           
static int DELETE_COLUMN
           
protected  DetailsGroup[] detailGroups
           
protected  DetailsGroup directSubClasses
           
protected  DetailsGroup directSuperClasses
           
protected  DetailsGroup directTypes
           
protected  DetailsGroup equivalentClasses
           
static int EXPANDED_COLUMN
           
protected  DetailsGroup instances
           
protected  OntologyItemComparator itemComparator
           
static int LABEL_COLUMN
           
protected  Ontology ontology
           
protected  boolean ontologyMode
           
protected  OResource oResource
           
protected  DetailsGroup propertyTypes
           
protected  DetailsGroup propertyValues
           
protected  DetailsGroup resourceInfo
           
protected  DetailsGroup sameAsInstances
           
static int VALUE_COLUMN
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DetailsTableModel()
           
 
Method Summary
 Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
 OResource getItem()
           
protected  Object getItemForRow(int row)
           
 Ontology getOntology()
           
 int getRowCount()
           
 Object getValueAt(int row, int col)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setItem(OResource oResource)
           
protected  void setItemForRow(int row, Object value)
           
 void setOntology(Ontology ontology)
           
 void setValueAt(Object value, int row, int col)
           
 
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

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

DetailsTableModel

public 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 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)