edu.stanford.smi.protegex.owl.ui.testing
Class OWLTestSettingsTableModel

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

public class OWLTestSettingsTableModel
extends AbstractTableModel

Author:
Holger Knublauch
See Also:
Serialized Form

Field Summary
static int COL_ACTIVATED
           
static int COL_COUNT
           
static int COL_NAME
           
private  List testClasses
          A list of either Class objects (for the TestClass) or Strings (to represent group headers).
private  OWLTestManager testManager
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
OWLTestSettingsTableModel(OWLTestManager testManager)
           
 
Method Summary
 Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int column)
           
private  String getGroupName(int rowIndex)
           
 OWLTest getOWLTest(Class clazz)
           
 Class getOWLTestClass(int rowIndex)
           
 String getOWLTestClassName(int rowIndex)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 boolean isSeparator(int rowIndex)
           
private  boolean isTestActivated(int rowIndex)
           
private  void setTestActivated(int rowIndex, boolean 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

COL_ACTIVATED

public static final int COL_ACTIVATED
See Also:
Constant Field Values

COL_NAME

public static final int COL_NAME
See Also:
Constant Field Values

COL_COUNT

public static final int COL_COUNT
See Also:
Constant Field Values

testClasses

private List testClasses
A list of either Class objects (for the TestClass) or Strings (to represent group headers).


testManager

private OWLTestManager testManager
Constructor Detail

OWLTestSettingsTableModel

public OWLTestSettingsTableModel(OWLTestManager testManager)
Method Detail

getColumnClass

public Class getColumnClass(int columnIndex)

getColumnCount

public int getColumnCount()

getColumnName

public String getColumnName(int column)

getOWLTest

public OWLTest getOWLTest(Class clazz)

getOWLTestClass

public Class getOWLTestClass(int rowIndex)

getOWLTestClassName

public String getOWLTestClassName(int rowIndex)

getRowCount

public int getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)

isSeparator

public boolean isSeparator(int rowIndex)

isTestActivated

private boolean isTestActivated(int rowIndex)

setTestActivated

private void setTestActivated(int rowIndex,
                              boolean value)

setValueAt

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

getGroupName

private String getGroupName(int rowIndex)