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

## edu.stanford.smi.protegex.owl.swrl.ui.table
Class SWRLTableModel

    java.lang.Object
      javax.swing.table.AbstractTableModel
          edu.stanford.smi.protegex.owl.swrl.ui.table.SWRLTableModel

All Implemented Interfaces:
  edu.stanford.smi.protege.util.Disposable, SymbolTableModel, Serializable, TableModel

    public class SWRLTableModel

extends AbstractTableModel
implements edu.stanford.smi.protege.util.Disposable, SymbolTableModel

Author:
  Holger Knublauch
See Also:
  Serialized Form

Field Summary
`static int` | `COL_COUNT`
`static int` | `COL_ENABLED`
`static int` | `COL_EXPRESSION`
`static int` | `COL_NAME`

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

Constructor Summary
`SWRLTableModel(OWLModel owlModel)`
`SWRLTableModel(RDFResource resource)`

Method Summary
`void` | `disableAll()`
`void` | `dispose()`
`void` | `enableAll()`
`Class` | `getColumnClass(int column)`
`int` | `getColumnCount()`
`String` | `getColumnName(int column)`
`Icon` | `getIcon(RDFResource resource)`
`SWRLImp` | `getImp(int row)`
`RDFProperty` | `getPredicate(int row)`
`RDFResource` | `getRDFResource(int row)`
`int` | `getRowCount()`
`RDFResource` | `getSubject()`
`int` | `getSymbolColumnIndex()`
`Object` | `getValueAt(int rowIndex, int columnIndex)`
`int` | `indexOf(SWRLImp imp)`
`boolean` | `isCellEditable(int rowIndex, int columnIndex)`
`void` | `setImp(int row, SWRLImp imp)`
`void` | `setRowOf(SWRLImp imp, int index)`
`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`

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

Field Detail

### COL_ENABLED

    public static final int COL_ENABLED

See Also:
  Constant Field Values

### COL_NAME

    public static final int COL_NAME

See Also:
  Constant Field Values

### COL_EXPRESSION

    public static final int COL_EXPRESSION

See Also:
  Constant Field Values

### COL_COUNT

    public static final int COL_COUNT

See Also:
  Constant Field Values

Constructor Detail

### SWRLTableModel

    public SWRLTableModel(OWLModel owlModel)

### SWRLTableModel

    public SWRLTableModel(RDFResource resource)

Method Detail

### dispose

    public void dispose()

  Specified by:
    `dispose` in interface `edu.stanford.smi.protege.util.Disposable`

### getColumnCount

    public int getColumnCount()

  Specified by:
    `getColumnCount` in interface `TableModel`

### getIcon

    public Icon getIcon(RDFResource resource)

  Specified by:
    `getIcon` in interface `SymbolTableModel`

### getImp

    public SWRLImp getImp(int row)

### setImp

    public void setImp(int row,
                       SWRLImp imp)

### getPredicate

    public RDFProperty getPredicate(int row)

  Specified by:
    `getPredicate` in interface `SymbolTableModel`

### getRDFResource

    public RDFResource getRDFResource(int row)

  Specified by:
    `getRDFResource` in interface `SymbolTableModel`

### getSubject

    public RDFResource getSubject()

  Specified by:
    `getSubject` in interface `SymbolTableModel`

### getSymbolColumnIndex

    public int getSymbolColumnIndex()

  Specified by:
    `getSymbolColumnIndex` in interface `SymbolTableModel`

### getRowCount

    public int getRowCount()

  Specified by:
    `getRowCount` in interface `TableModel`

### indexOf

    public int indexOf(SWRLImp imp)

### getColumnClass

    public Class getColumnClass(int column)

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

### getColumnName

    public String getColumnName(int column)

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

### getValueAt

    public Object getValueAt(int rowIndex,
                             int columnIndex)

  Specified by:
    `getValueAt` in interface `TableModel`

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

### setRowOf

    public void setRowOf(SWRLImp imp,
                         int index)

### enableAll

    public void enableAll()

### disableAll

    public void disableAll()

Overview | Package | Class | Tree | Deprecated | Index | Help
| Protégé-OWL 3.4 rc1
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.