org.yawlfoundation.yawl.swingWorklist
Class YWorklistTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.yawlfoundation.yawl.swingWorklist.YWorklistTableModel
All Implemented Interfaces:
Serializable, TableModel

public class YWorklistTableModel
extends AbstractTableModel

Author:
Lachlan Aldred Date: 15/05/2003 Time: 13:51:11
See Also:
Serialized Form

Field Summary
protected  Map _rows
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
YWorklistTableModel(String[] colNames)
           
 
Method Summary
 void addRow(Object key, Object[] rowValues)
           
 Class getColumnClass(int c)
           
 int getColumnCount()
          Returns the number of columns in the model.
 String getColumnName(int columnIndex)
           
 String[] getColumnNames()
           
 String getOutputData(String caseIDStr, String taskID)
           
 int getRowCount()
          Returns the number of rows in the model.
 int getRowIndex(Object caseAndTaskID)
           
 Map getRowMap()
           
 Object getValueAt(int rowIndex, int columnIndex)
          Returns the value for the cell at columnIndex and rowIndex.
 void removeRow(Object caseAndTaskID)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rows

protected Map _rows
Constructor Detail

YWorklistTableModel

public YWorklistTableModel(String[] colNames)
Method Detail

getRowCount

public int getRowCount()
Returns the number of rows in the model. A JTable uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.

Returns:
the number of rows in the model
See Also:
getColumnCount()

getColumnCount

public int getColumnCount()
Returns the number of columns in the model. A JTable uses this method to determine how many columns it should create and display by default.

Returns:
the number of columns in the model
See Also:
getRowCount()

getValueAt

public Object getValueAt(int rowIndex,
                         int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.

Parameters:
rowIndex - the row whose value is to be queried
columnIndex - the column whose value is to be queried
Returns:
the value Object at the specified cell

addRow

public void addRow(Object key,
                   Object[] rowValues)

getColumnName

public String getColumnName(int columnIndex)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

removeRow

public void removeRow(Object caseAndTaskID)

getColumnClass

public Class getColumnClass(int c)
Specified by:
getColumnClass in interface TableModel
Overrides:
getColumnClass in class AbstractTableModel

getRowIndex

public int getRowIndex(Object caseAndTaskID)

getColumnNames

public String[] getColumnNames()

getRowMap

public Map getRowMap()

getOutputData

public String getOutputData(String caseIDStr,
                            String taskID)
                     throws org.jdom.JDOMException,
                            IOException
Throws:
org.jdom.JDOMException
IOException


Copyright © 2004-2012 The YAWL Foundation.