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.
        report - the report to base the model on
    • Method Detail

      • getReport

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

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

        public int getColumnCount()
        Returns the number of columns in the table.
        Specified by:
        getColumnCount in interface TableModel
        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
        row - the row in the table
        column - the column in the table
        the value
      • isSearchMatch

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

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

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