public class FormulaParameterTableModel extends AbstractTableModel implements org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
Constructor and Description |
---|
FormulaParameterTableModel()
Constructs a default
DefaultTableModel which is a table of zero columns and zero rows. |
Modifier and Type | Method and Description |
---|---|
Class |
getClassForCell(int row,
int column) |
int |
getColumnCount()
Returns the number of columns in the model.
|
String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
|
FormulaParameterEntity[] |
getData() |
PropertyEditor |
getEditorForCell(int row,
int column) |
FormulaParameterEntity.Type |
getParameterType(int row) |
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 |
setData(FormulaParameterEntity[] parameter) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, getColumnClass, removeTableModelListener
public FormulaParameterTableModel()
DefaultTableModel
which is a table of zero columns and zero rows.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.getRowCount
in interface TableModel
getColumnCount()
public int getColumnCount()
JTable
uses this method to determine how many columns it
should create and display by default.getColumnCount
in interface TableModel
getRowCount()
public String getColumnName(int column)
column
cannot be found, returns an empty string.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column being queriedcolumn
public Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and rowIndex
.getValueAt
in interface TableModel
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queriedpublic boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
rowIndex
- the row being queriedcolumnIndex
- the column being queriedpublic void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
public Class getClassForCell(int row, int column)
getClassForCell
in interface org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
public PropertyEditor getEditorForCell(int row, int column)
getEditorForCell
in interface org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
public void setData(FormulaParameterEntity[] parameter)
public FormulaParameterEntity[] getData()
public FormulaParameterEntity.Type getParameterType(int row)