public class YWorklistTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
_rows |
Constructor and Description |
---|
YWorklistTableModel(java.lang.String[] colNames) |
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.lang.Object key,
java.lang.Object[] rowValues) |
java.lang.Class |
getColumnClass(int c) |
int |
getColumnCount()
Returns the number of columns in the model.
|
java.lang.String |
getColumnName(int columnIndex) |
java.lang.String[] |
getColumnNames() |
java.lang.String |
getOutputData(java.lang.String caseIDStr,
java.lang.String taskID) |
int |
getRowCount()
Returns the number of rows in the model.
|
int |
getRowIndex(java.lang.Object caseAndTaskID) |
java.util.Map |
getRowMap() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and
rowIndex . |
void |
removeRow(java.lang.Object caseAndTaskID) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public int getRowCount()
JTable
uses this method to determine how many rows it
should display. This method should be quick, as it
is called frequently during rendering.getColumnCount()
public int getColumnCount()
JTable
uses this method to determine how many columns it
should create and display by default.getRowCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and
rowIndex
.rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queriedpublic void addRow(java.lang.Object key, java.lang.Object[] rowValues)
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public void removeRow(java.lang.Object caseAndTaskID)
public java.lang.Class getColumnClass(int c)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public int getRowIndex(java.lang.Object caseAndTaskID)
public java.lang.String[] getColumnNames()
public java.util.Map getRowMap()
public java.lang.String getOutputData(java.lang.String caseIDStr, java.lang.String taskID) throws JDOMException, java.io.IOException
JDOMException
java.io.IOException
Copyright © 2004-2014 The YAWL Foundation.