Class 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
    • Constructor Detail

      • FormulaParameterTableModel

        public FormulaParameterTableModel()
        Constructs a default DefaultTableModel which is a table of zero columns and zero rows.
    • 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.
        Specified by:
        getRowCount in interface TableModel
        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.
        Specified by:
        getColumnCount in interface TableModel
        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. If column cannot be found, returns an empty string.
        Specified by:
        getColumnName in interface TableModel
        Overrides:
        getColumnName in class AbstractTableModel
        Parameters:
        column - the column being queried
        Returns:
        a string containing the default name of column
      • getValueAt

        public Object getValueAt​(int rowIndex,
                                 int columnIndex)
        Returns the value for the cell at columnIndex and rowIndex.
        Specified by:
        getValueAt in interface TableModel
        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
      • isCellEditable

        public boolean isCellEditable​(int rowIndex,
                                      int columnIndex)
        Returns false. This is the default implementation for all cells.
        Specified by:
        isCellEditable in interface TableModel
        Overrides:
        isCellEditable in class AbstractTableModel
        Parameters:
        rowIndex - the row being queried
        columnIndex - the column being queried
        Returns:
        false
      • getClassForCell

        public Class getClassForCell​(int row,
                                     int column)
        Specified by:
        getClassForCell in interface org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel
      • getEditorForCell

        public PropertyEditor getEditorForCell​(int row,
                                               int column)
        Specified by:
        getEditorForCell in interface org.pentaho.reporting.libraries.designtime.swing.table.PropertyTableModel