Overview | Package | Class | Tree | Deprecated | Index | Help
| Protégé-OWL 3.4 rc2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.stanford.smi.protegex.owl.ui.components.triples
Class TriplesTableModel

    java.lang.Object
      javax.swing.table.AbstractTableModel
          edu.stanford.smi.protegex.owl.ui.components.triples.TriplesTableModel

All Implemented Interfaces:
  Serializable, TableModel

Direct Known Subclasses:
  AnnotationsTableModel

    public class TriplesTableModel

extends AbstractTableModel

A TableModel to display property values for a given subject. Each row in this table represents a single triple.

Author:
  Holger Knublauch
See Also:
  Serialized Form

Field Summary
`static int` | `COL_PROPERTY`
`static int` | `COL_VALUE`

Fields inherited from class javax.swing.table.AbstractTableModel
`listenerList`

Constructor Summary
`TriplesTableModel()`
`TriplesTableModel(RDFResource subject)`

Method Summary
`int` | `addRow(RDFProperty property)`
`int` | `addRow(RDFProperty property, Object value)`
`void` | `deleteRow(int rowIndex)`
`void` | `dispose()`
`Class` | `getColumnClass(int column)`
`int` | `getColumnCount()`
`String` | `getColumnName(int column)`
`Collection<RDFProperty>` | `getDefaultProperties()`
`Object` | `getDisplayValue(int rowIndex)`
`String` | `getLanguage(int row)`
`OWLModel` | `getOWLModel()`
`RDFProperty` | `getPredicate(int rowIndex)`
`int` | `getPropertyValueRow(RDFProperty property, Object value)`
`protected Collection<RDFProperty>` | `getRelevantProperties()`
`int` | `getRowCount()`
`RDFResource` | `getSubject()`
`Object` | `getValue(int rowIndex)`
`Object` | `getValueAt(int rowIndex, int columnIndex)`
`protected boolean` | `hasTypeColumn()`
`boolean` | `isCellEditable(int rowIndex, int columnIndex)`
`boolean` | `isDeleteEnabled(int row)`
`static boolean` | `isInvalidXMLLiteral(RDFProperty property, Object value)`
`protected boolean` | `isRelevantProperty(RDFProperty property)`
`void` | `setSubject(RDFResource instance)`
`void` | `setTable(TriplesTable table)`
`Object` | `setValue(Object aValue, int row)`
`Object` | `setValueAndGetIt(Object value, int row, int col)`
`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

### COL_PROPERTY

    public static final int COL_PROPERTY

See Also:
  Constant Field Values

### COL_VALUE

    public static final int COL_VALUE

See Also:
  Constant Field Values

Constructor Detail

### TriplesTableModel

    public TriplesTableModel()

### TriplesTableModel

    public TriplesTableModel(RDFResource subject)

Method Detail

### addRow

    public int addRow(RDFProperty property)

### addRow

    public int addRow(RDFProperty property,
                      Object value)

### deleteRow

    public void deleteRow(int rowIndex)

### dispose

    public void dispose()

### getColumnClass

    public Class getColumnClass(int column)

  Specified by:
    `getColumnClass` in interface `TableModel`
  Overrides:
    `getColumnClass` in class `AbstractTableModel`

### getColumnCount

    public int getColumnCount()

### getColumnName

    public String getColumnName(int column)

  Specified by:
    `getColumnName` in interface `TableModel`
  Overrides:
    `getColumnName` in class `AbstractTableModel`

### getDisplayValue

    public Object getDisplayValue(int rowIndex)

### getLanguage

    public String getLanguage(int row)

### getOWLModel

    public OWLModel getOWLModel()

### getPredicate

    public RDFProperty getPredicate(int rowIndex)

### getPropertyValueRow

    public int getPropertyValueRow(RDFProperty property,
                                   Object value)

### getRelevantProperties

    protected Collection<RDFProperty> getRelevantProperties()

### getRowCount

    public int getRowCount()

### getSubject

    public RDFResource getSubject()

### getValueAt

    public Object getValueAt(int rowIndex,
                             int columnIndex)

### getValue

    public Object getValue(int rowIndex)

### hasTypeColumn

    protected boolean hasTypeColumn()

### isCellEditable

    public boolean isCellEditable(int rowIndex,
                                  int columnIndex)

  Specified by:
    `isCellEditable` in interface `TableModel`
  Overrides:
    `isCellEditable` in class `AbstractTableModel`

### isDeleteEnabled

    public boolean isDeleteEnabled(int row)

### isInvalidXMLLiteral

    public static boolean isInvalidXMLLiteral(RDFProperty property,
                                              Object value)

### isRelevantProperty

    protected boolean isRelevantProperty(RDFProperty property)

### setSubject

    public void setSubject(RDFResource instance)

### setValue

    public Object setValue(Object aValue,
                           int row)

### setValueAt

    public void setValueAt(Object aValue,
                           int rowIndex,
                           int columnIndex)

  Specified by:
    `setValueAt` in interface `TableModel`
  Overrides:
    `setValueAt` in class `AbstractTableModel`

### setValueAndGetIt

    public Object setValueAndGetIt(Object value,
                                   int row,
                                   int col)

### setTable

    public void setTable(TriplesTable table)

### getDefaultProperties

    public Collection<RDFProperty> getDefaultProperties()

Overview | Package | Class | Tree | Deprecated | Index | Help
| Protégé-OWL 3.4 rc2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit a bug report or feature request
Copyright (c) 1998-2009 Stanford University.