fr.ens.transcriptome.doelan.gui
Class QualityTestSuiteTableModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byfr.ens.transcriptome.nividic.platform.workflow.gui.WorkflowTableAbstractModel
          extended byfr.ens.transcriptome.doelan.gui.QualityTestSuiteTableModel
All Implemented Interfaces:
fr.ens.transcriptome.nividic.platform.workflow.AlgorithmListener, java.io.Serializable, javax.swing.table.TableModel, fr.ens.transcriptome.nividic.platform.workflow.WorkflowListener

public class QualityTestSuiteTableModel
extends fr.ens.transcriptome.nividic.platform.workflow.gui.WorkflowTableAbstractModel

Table model for QualityUnitTest

Author:
Laurent Jourdren
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
QualityTestSuiteTableModel()
           
 
Method Summary
 void algorithmStateChanged(fr.ens.transcriptome.nividic.platform.workflow.AlgorithmEvent e)
          Handle algorithm events
 void clearResults()
          Clear results.
 boolean filterModule(fr.ens.transcriptome.nividic.platform.module.AboutModule about, fr.ens.transcriptome.nividic.platform.workflow.Algorithm algorithm, boolean local)
          Test if an algorithm is a showable quality test.
 boolean filterWorkflowElement(fr.ens.transcriptome.nividic.platform.workflow.WorkflowElement element)
          Test if an element is a showable Workflow element.
 java.lang.Class getColumnClass(int col)
          Get the class of a column.
 int getColumnCount()
          Get the number of column.
 java.lang.String getColumnName(int col)
          Get the name of a column.
 java.lang.String getTip(int row)
          Get the tip
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
          Get a value.
 boolean isCellEditable(int rowIndex, int columnIndex)
          Returns true if the cell at rowIndex and columnIndex is editable.
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
          Sets the value in the cell at columnIndex and rowIndex to aValue.
 void workflowNewException(fr.ens.transcriptome.nividic.platform.PlatformException e)
          Throws an execption to a listener.
 
Methods inherited from class fr.ens.transcriptome.nividic.platform.workflow.gui.WorkflowTableAbstractModel
getAlgorithmAt, getAvailableModules, getDisplayElements, getRowAlgorithm, getRowCount, getWorkflow, getWorkflowElementAt, refreshModules, refreshWorkflowElements, setWorkflow, workflowStateChanged
 
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
 

Constructor Detail

QualityTestSuiteTableModel

public QualityTestSuiteTableModel()
Method Detail

getColumnName

public java.lang.String getColumnName(int col)
Get the name of a column.

Parameters:
col - number of the column
Returns:
the name of the column

getColumnClass

public java.lang.Class getColumnClass(int col)
Get the class of a column.

Parameters:
col - number of the column
Returns:
the class of the column

getColumnCount

public int getColumnCount()
Get the number of column.

Returns:
the column count

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Get a value.

Parameters:
rowIndex - index of the row
columnIndex - index of the column
Returns:
An object with the value

getTip

public java.lang.String getTip(int row)
Get the tip

Parameters:
row - the row number
Returns:
The tip about the test

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Returns true if the cell at rowIndex and columnIndex is editable. Otherwise, setValueAt on the cell will not change the value of that cell.

Parameters:
rowIndex - the row whose value to be queried
columnIndex - the column whose value to be queried
Returns:
true if the cell is editable

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Sets the value in the cell at columnIndex and rowIndex to aValue.

Parameters:
aValue - the new value
rowIndex - the row whose value is to be changed
columnIndex - the column whose value is to be changed

filterWorkflowElement

public boolean filterWorkflowElement(fr.ens.transcriptome.nividic.platform.workflow.WorkflowElement element)
Test if an element is a showable Workflow element.

Parameters:
element - Element to test
Returns:
true if the element to test is showable Workflow element

filterModule

public boolean filterModule(fr.ens.transcriptome.nividic.platform.module.AboutModule about,
                            fr.ens.transcriptome.nividic.platform.workflow.Algorithm algorithm,
                            boolean local)
Test if an algorithm is a showable quality test.

Parameters:
about - Information about the algorithm
algorithm - Algorithm to test
Returns:
true if the algorithm to test is showable

algorithmStateChanged

public void algorithmStateChanged(fr.ens.transcriptome.nividic.platform.workflow.AlgorithmEvent e)
Handle algorithm events

Parameters:
e - Algorithm event

workflowNewException

public void workflowNewException(fr.ens.transcriptome.nividic.platform.PlatformException e)
Throws an execption to a listener.

Parameters:
e - Exception to throw.

clearResults

public void clearResults()
Clear results.



Copyright © 2004-2005 École Normale Supérieure Microarray Platform. All Rights Reserved.