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.metadatatab.prefixes
Class PrefixesTableModel

    java.lang.Object
      javax.swing.table.AbstractTableModel
          edu.stanford.smi.protegex.owl.ui.metadatatab.prefixes.PrefixesTableModel

All Implemented Interfaces:
  Serializable, TableModel

    public class PrefixesTableModel

extends AbstractTableModel

A TableModel for editing prefixes in an OWLModel. The resulting table has two columns, one for prefixes and one for the namespace.

Author:
  Holger Knublauch
See Also:
  Serialized Form

Field Summary
`static int` | `COL_COUNT`
`static int` | `COL_NAMESPACE`
`static int` | `COL_PREFIX`

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

Constructor Summary
`PrefixesTableModel(OWLOntology ontology)`

Method Summary
`Class` | `getColumnClass(int columnIndex)`
`int` | `getColumnCount()`
`String` | `getColumnName(int column)`
`String` | `getNamespace(int rowIndex)`
`String` | `getPrefix(int row)`
`int` | `getRowCount()`
`int` | `getRowOfPrefix(String prefix)`
`Object` | `getValueAt(int rowIndex, int columnIndex)`
`boolean` | `isCellEditable(int rowIndex, int columnIndex)`
`boolean` | `isNamespaceEditable(String namespace)`
`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_PREFIX

    public static final int COL_PREFIX

See Also:
  Constant Field Values

### COL_NAMESPACE

    public static final int COL_NAMESPACE

See Also:
  Constant Field Values

### COL_COUNT

    public static final int COL_COUNT

See Also:
  Constant Field Values

Constructor Detail

### PrefixesTableModel

    public PrefixesTableModel(OWLOntology ontology)

Method Detail

### getColumnCount

    public int getColumnCount()

### getColumnClass

    public Class getColumnClass(int columnIndex)

  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`

### getNamespace

    public String getNamespace(int rowIndex)

### getPrefix

    public String getPrefix(int row)

### getRowCount

    public int getRowCount()

### getValueAt

    public Object getValueAt(int rowIndex,
                             int columnIndex)

### isCellEditable

    public boolean isCellEditable(int rowIndex,
                                  int columnIndex)

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

### isNamespaceEditable

    public boolean isNamespaceEditable(String namespace)

### setValueAt

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

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

### getRowOfPrefix

    public int getRowOfPrefix(String prefix)

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.