public class ParameterMappingTableModel extends AbstractTableModel
Constructor and Description |
---|
ParameterMappingTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(org.pentaho.reporting.engine.classic.core.ParameterMapping mappings) |
void |
addMappings(org.pentaho.reporting.engine.classic.core.ParameterMapping[] mappings) |
void |
addRow() |
void |
clear() |
Class |
getColumnClass(int columnIndex)
Returns
Object.class regardless of columnIndex . |
int |
getColumnCount()
Returns the number of columns in the model.
|
String |
getColumnName(int columnIndex)
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
|
org.pentaho.reporting.engine.classic.core.ParameterMapping[] |
getMappings() |
int |
getRowCount()
Returns the number of rows in the model.
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at
columnIndex and rowIndex . |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns false.
|
void |
removeRow(int row) |
void |
setMappings(org.pentaho.reporting.engine.classic.core.ParameterMapping[] mappings) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
This empty implementation is provided so users don't have to implement this method if their data model is not
editable.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public org.pentaho.reporting.engine.classic.core.ParameterMapping[] getMappings()
public void clear()
public void addMapping(org.pentaho.reporting.engine.classic.core.ParameterMapping mappings)
public void addMappings(org.pentaho.reporting.engine.classic.core.ParameterMapping[] mappings)
public void setMappings(org.pentaho.reporting.engine.classic.core.ParameterMapping[] mappings)
public void addRow()
public void removeRow(int row)
public String getColumnName(int columnIndex)
column
cannot be found, returns an empty string.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
columnIndex
- the column being queriedcolumn
public Class getColumnClass(int columnIndex)
Object.class
regardless of columnIndex
.getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
columnIndex
- the column being queriedpublic boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
rowIndex
- the row being queriedcolumnIndex
- the column being queriedpublic 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 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 setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
aValue
- value to assign to cellrowIndex
- row of cellcolumnIndex
- column of cell