Class FormulaParameterTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.pentaho.reporting.ui.datasources.kettle.parameter.FormulaParameterTableModel
-
- All Implemented Interfaces:
Serializable
,TableModel
,org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
public class FormulaParameterTableModel extends AbstractTableModel implements org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
-
Constructor Summary
Constructors Constructor Description FormulaParameterTableModel()
Constructs a defaultDefaultTableModel
which is a table of zero columns and zero rows.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 atcolumnIndex
androwIndex
.boolean
isCellEditable(int rowIndex, int columnIndex)
Returns false.void
setData(FormulaParameterEntity[] parameter)
void
setValueAt(Object aValue, int rowIndex, int columnIndex)
protected void
updateData(FormulaParameterEntity[] elements)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, removeTableModelListener
-
-
-
-
Method Detail
-
getRowCount
public int getRowCount()
Returns the number of rows in the model. AJTable
uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.- Specified by:
getRowCount
in interfaceTableModel
- Returns:
- the number of rows in the model
- See Also:
getColumnCount()
-
getColumnCount
public int getColumnCount()
Returns the number of columns in the model. AJTable
uses this method to determine how many columns it should create and display by default.- Specified by:
getColumnCount
in interfaceTableModel
- Returns:
- the number of columns in the model
- See Also:
getRowCount()
-
getColumnName
public String getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z, AA, AB, etc. Ifcolumn
cannot be found, returns an empty string.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the column being queried- Returns:
- a string containing the default name of
column
-
updateData
protected void updateData(FormulaParameterEntity[] elements)
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
Returns the value for the cell atcolumnIndex
androwIndex
.- Specified by:
getValueAt
in interfaceTableModel
- Parameters:
rowIndex
- the row whose value is to be queriedcolumnIndex
- the column whose value is to be queried- Returns:
- the value Object at the specified cell
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
Returns false. This is the default implementation for all cells.- Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
- Parameters:
rowIndex
- the row being queriedcolumnIndex
- the column being queried- Returns:
- false
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
getClassForCell
public Class getClassForCell(int row, int column)
- Specified by:
getClassForCell
in interfaceorg.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
-
getEditorForCell
public PropertyEditor getEditorForCell(int row, int column)
- Specified by:
getEditorForCell
in interfaceorg.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
-
setData
public void setData(FormulaParameterEntity[] parameter)
-
getData
public FormulaParameterEntity[] getData()
-
getParameterType
public FormulaParameterEntity.Type getParameterType(int row)
-
-