gate.gui.ontology
Class PropertyDetailsTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by gate.gui.ontology.PropertyDetailsTableModel
All Implemented Interfaces:
Serializable, TableModel

public class PropertyDetailsTableModel
extends AbstractTableModel

A DataModel that is created when a node is selected in the ontology property tree. It contains information such as direct/all sub/super properties, equivalent properties, domain/range of each property and 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 allSubProps
           
protected  DetailsGroup allSuperProps
           
static int COLUMN_COUNT
           
static int DELETE_COLUMN
           
protected  DetailsGroup[] detailGroups
           
protected  DetailsGroup directSubProps
           
protected  DetailsGroup directSuperProps
           
protected  DetailsGroup domain
           
protected  DetailsGroup equivalentProps
           
static int EXPANDED_COLUMN
           
protected  OntologyItemComparator itemComparator
           
static int LABEL_COLUMN
           
protected  DetailsGroup propertyTypes
           
protected  DetailsGroup propertyValues
           
protected  DetailsGroup range
           
protected  DetailsGroup resourceInfo
           
static int VALUE_COLUMN
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PropertyDetailsTableModel()
           
 
Method Summary
 Class getColumnClass(int i)
           
 int getColumnCount()
           
 String getColumnName(int i)
           
protected  Object getItemForRow(int i)
           
 int getRowCount()
           
 Object getValueAt(int i, int j)
           
 boolean isCellEditable(int i, int j)
           
 void setItem(Object obj)
           
 void setValueAt(Object obj, int i, int j)
           
 
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

directSuperProps

protected DetailsGroup directSuperProps

allSuperProps

protected DetailsGroup allSuperProps

directSubProps

protected DetailsGroup directSubProps

equivalentProps

protected DetailsGroup equivalentProps

allSubProps

protected DetailsGroup allSubProps

domain

protected DetailsGroup domain

range

protected DetailsGroup range

propertyTypes

protected DetailsGroup propertyTypes

propertyValues

protected DetailsGroup propertyValues

detailGroups

protected DetailsGroup[] detailGroups

itemComparator

protected OntologyItemComparator itemComparator

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

PropertyDetailsTableModel

public PropertyDetailsTableModel()
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getColumnName

public String getColumnName(int i)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnClass

public Class getColumnClass(int i)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

isCellEditable

public boolean isCellEditable(int i,
                              int j)
Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

setValueAt

public void setValueAt(Object obj,
                       int i,
                       int j)
Specified by:
setValueAt in interface TableModel
Overrides:
setValueAt in class AbstractTableModel

getItemForRow

protected Object getItemForRow(int i)

getValueAt

public Object getValueAt(int i,
                         int j)

setItem

public void setItem(Object obj)