edu.stanford.smi.protegex.owl.ui.metadatatab
Class NamespacesTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byedu.stanford.smi.protegex.owl.ui.metadatatab.NamespacesTableModel
All Implemented Interfaces:
NamespacesTableColumns, Serializable, TableModel

public class NamespacesTableModel
extends AbstractTableModel
implements NamespacesTableColumns

Author:
Holger Knublauch
See Also:
Serialized Form

Field Summary
private  NamespaceManager nsm
           
private  OWLModel owlModel
           
private  List prefixes
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Fields inherited from interface edu.stanford.smi.protegex.owl.ui.metadatatab.NamespacesTableColumns
COL_ALIAS, COL_COUNT, COL_IMPORTED, COL_NAMESPACE, COL_PREFIX
 
Constructor Summary
NamespacesTableModel(OWLModel owlModel)
           
 
Method Summary
private  String getAltURI(int row)
           
 Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
(package private)  String getImportURI(int row)
           
 String getNamespace(int row)
           
 String getPrefix(int row)
           
private  int getPrefixRow(String prefix)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
(package private)  boolean isImported(int row)
           
private  void refill()
           
private  void setNamespaceOfPrefix(String prefix, String value)
           
private  void setPrefixOfNamespace(String namespace, String value)
           
 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

prefixes

private List prefixes

nsm

private NamespaceManager nsm

owlModel

private OWLModel owlModel
Constructor Detail

NamespacesTableModel

public NamespacesTableModel(OWLModel owlModel)
Method Detail

getAltURI

private String getAltURI(int row)

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface TableModel

getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel

getColumnClass

public Class getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface TableModel

getImportURI

String getImportURI(int row)

getNamespace

public String getNamespace(int row)

getPrefix

public String getPrefix(int row)

getPrefixRow

private int getPrefixRow(String prefix)

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface TableModel

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

isImported

boolean isImported(int row)

refill

private void refill()

setValueAt

public void setValueAt(Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface TableModel

setNamespaceOfPrefix

private void setNamespaceOfPrefix(String prefix,
                                  String value)

setPrefixOfNamespace

private void setPrefixOfNamespace(String namespace,
                                  String value)