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

## edu.stanford.smi.protegex.owl.ui.clsdesc
Class DisjointClassesTableModel

    java.lang.Object
      javax.swing.table.AbstractTableModel
          edu.stanford.smi.protegex.owl.ui.clsdesc.DisjointClassesTableModel

All Implemented Interfaces:
  Serializable, TableModel

    public class DisjointClassesTableModel

extends AbstractTableModel

An AbstractTableModel that represents each disjoint class with one row. Its contents is automatically synchronized with the given Cls.

Author:
  Holger Knublauch
See Also:
  Serialized Form

Field Summary

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

Constructor Summary
`DisjointClassesTableModel()`

Method Summary
`int` | `addEmptyRow(int rowIndex)`
`boolean` | `addRow(RDFSClass rdfsClass, int rowIndex)`
`void` | `deleteRow(int index)`
`void` | `displaySemanticError(String message)` Displays an illegal assignment error dialog, e.g.
`void` | `dispose()` Clears any dangling listeners.
`RDFSClass` | `getClass(int rowIndex)`
`int` | `getClassRow(RDFSClass cls)`
`Class` | `getColumnClass(int columnIndex)`
`int` | `getColumnCount()`
`String` | `getColumnName(int column)`
`OWLNamedClass` | `getEditedCls()`
`Icon` | `getIcon(RDFResource resource)`
`RDFProperty` | `getPredicate(int row)`
`RDFResource` | `getRDFResource(int row)`
`int` | `getRowCount()`
`RDFResource` | `getSubject()`
`int` | `getSymbolColumnIndex()`
`Object` | `getValueAt(int rowIndex, int columnIndex)`
`boolean` | `isAddEnabledAt(int rowIndex)`
`boolean` | `isCellEditable(int rowIndex, int columnIndex)`
`boolean` | `isDeleteEnabledFor(RDFSClass cls)`
`boolean` | `isEditable()`
`boolean` | `isRemoveEnabledFor(edu.stanford.smi.protege.model.Cls otherClass)`
`void` | `removeEmptyRow()`
`void` | `setCls(OWLNamedClass newCls)`
`void` | `setValueAt(Object value, 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`

Methods inherited from interface javax.swing.table.TableModel
`addTableModelListener, removeTableModelListener`

Constructor Detail

### DisjointClassesTableModel

    public DisjointClassesTableModel()

Method Detail

### addEmptyRow

    public int addEmptyRow(int rowIndex)

### addRow

    public boolean addRow(RDFSClass rdfsClass,
                          int rowIndex)

### deleteRow

    public void deleteRow(int index)

### displaySemanticError

    public void displaySemanticError(String message)

  Description copied from interface: `OWLTableModel`
  Displays an illegal assignment error dialog, e.g. through a JOptionPane. This can be used if someone tries to assign an illegal superclass to the model.

  Parameters:
    `message` - the message text

### dispose

    public void dispose()

  Clears any dangling listeners.

### getColumnCount

    public int getColumnCount()

  Specified by:
    `getColumnCount` in interface `TableModel`

### 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`

### getClass

    public RDFSClass getClass(int rowIndex)

### getClassRow

    public int getClassRow(RDFSClass cls)

### getEditedCls

    public OWLNamedClass getEditedCls()

### getPredicate

    public RDFProperty getPredicate(int row)

### getRDFResource

    public RDFResource getRDFResource(int row)

### getSubject

    public RDFResource getSubject()

### getSymbolColumnIndex

    public int getSymbolColumnIndex()

### getIcon

    public Icon getIcon(RDFResource resource)

### getRowCount

    public int getRowCount()

  Specified by:
    `getRowCount` in interface `TableModel`

### getValueAt

    public Object getValueAt(int rowIndex,
                             int columnIndex)

  Specified by:
    `getValueAt` in interface `TableModel`

### isAddEnabledAt

    public boolean isAddEnabledAt(int rowIndex)

### isCellEditable

    public boolean isCellEditable(int rowIndex,
                                  int columnIndex)

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

### isDeleteEnabledFor

    public boolean isDeleteEnabledFor(RDFSClass cls)

### isEditable

    public boolean isEditable()

### isRemoveEnabledFor

    public boolean isRemoveEnabledFor(edu.stanford.smi.protege.model.Cls otherClass)

### removeEmptyRow

    public void removeEmptyRow()

### setCls

    public void setCls(OWLNamedClass newCls)

### setValueAt

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

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

Overview | Package | Class | Tree | Deprecated | Index | Help
| Protégé-OWL 3.5 alpha
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-2012 Stanford University.