org.embl.ebi.escience.scuflui
Class EnactorStatusTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.embl.ebi.escience.scuflui.EnactorStatusTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class EnactorStatusTableModel
extends javax.swing.table.AbstractTableModel

A Swing table model implementation that can be constructed from a ScuflModel instance and updated by the XML coming back from the status reports from the enactor.

Author:
Tom Oinn
See Also:
Serialized Form

Constructor Summary
EnactorStatusTableModel(ScuflModel scufl)
           
 
Method Summary
 java.lang.Class<?> getColumnClass(int c)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int col)
           
 void setBreakpointStatus(java.lang.String processorName, javax.swing.ImageIcon bstatus)
          Set the breakpoint icon for a given processor
 void setEventDetail(java.lang.String processorName, java.lang.String theString)
          Set the end time string for a given processor
 void setEventTime(java.lang.String processorName, java.lang.String theString)
          Set the start time string for a given processor
 void setStatusString(java.lang.String processorName, java.lang.String statusString)
          Set the status string for a given processor
 void setValueAt(java.lang.Object value, int row, int col)
          Set the value and fire the events appropriately
 java.lang.String update(java.lang.String progressReport)
          Update the table with data from the progress report
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnactorStatusTableModel

public EnactorStatusTableModel(ScuflModel scufl)
Method Detail

setStatusString

public void setStatusString(java.lang.String processorName,
                            java.lang.String statusString)
Set the status string for a given processor


setEventTime

public void setEventTime(java.lang.String processorName,
                         java.lang.String theString)
Set the start time string for a given processor


setEventDetail

public void setEventDetail(java.lang.String processorName,
                           java.lang.String theString)
Set the end time string for a given processor


setBreakpointStatus

public void setBreakpointStatus(java.lang.String processorName,
                                javax.swing.ImageIcon bstatus)
Set the breakpoint icon for a given processor


update

public java.lang.String update(java.lang.String progressReport)
                        throws org.embl.ebi.escience.scuflui.InvalidStatusReportException
Update the table with data from the progress report

Throws:
org.embl.ebi.escience.scuflui.InvalidStatusReportException

getColumnClass

public java.lang.Class<?> getColumnClass(int c)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

getColumnCount

public int getColumnCount()

getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Set the value and fire the events appropriately

Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel