Class ReportFactory.Model

    • Field Detail

      • m_Report

        protected Report m_Report
        the underlying report.
      • m_Fields

        protected List<AbstractField> m_Fields
        for faster access, caching the fields.
      • m_NumDecimals

        protected int m_NumDecimals
        the number of decimals for numeric values (-1 means all).
    • Constructor Detail

      • Model

        public Model()
        Initializes the model.
      • Model

        public Model​(Report report)
        Initializes the model.
        Parameters:
        report - the report to base the model on
    • Method Detail

      • getReport

        public Report getReport()
        Returns the underlying report.
        Returns:
        the report
      • getRowCount

        public int getRowCount()
        Returns the number of rows/targets in the report.
        Specified by:
        getRowCount in interface TableModel
        Returns:
        the number of rows
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in the table.
        Specified by:
        getColumnCount in interface TableModel
        Returns:
        the number of columns
      • getValueAt

        public Object getValueAt​(int row,
                                 int column)
        Returns the value at the given position.
        Specified by:
        getValueAt in interface TableModel
        Parameters:
        row - the row in the table
        column - the column in the table
        Returns:
        the value
      • isSearchMatch

        public boolean isSearchMatch​(SearchParameters params,
                                     int row)
        Tests whether the search matches the specified row.
        Specified by:
        isSearchMatch in interface CustomSearchTableModel
        Parameters:
        params - the search parameters
        row - the row of the underlying, unsorted model
        Returns:
        true if the search matches this row
      • setNumDecimals

        public void setNumDecimals​(int value)
        Sets the number of decimals to display for numeric values.
        Parameters:
        value - the number of decimals (use -1 to display all)
      • getNumDecimals

        public int getNumDecimals()
        Returns the number of decimals used to display numeric values.
        Returns:
        the number of decimals