Class ReportSpecManager


  • public class ReportSpecManager
    extends java.lang.Object
    Manager for memorized reports and graphs, provides notifications when changes are made. This class also consolidates code that was scattered in several user interface classes. This class has a reference to the root account object and the root account also has a reference to this class to delegate tasks to it.
    • Constructor Detail

      • ReportSpecManager

        public ReportSpecManager​(AccountBook book)
        Constructor to allow the data file to be an immutable field.
        Parameters:
        book - The associated data file.
    • Method Detail

      • addListener

        public void addListener​(MemorizedItemListener listener)
        Register an object that would like to receive notification when transactions have been modified, added, or removed.
      • getAllMemorizedItems

        public java.util.List<ReportSpec> getAllMemorizedItems()
        Return a list of all memorized graphs and reports
      • getAllItems

        public java.util.List<ReportSpec> getAllItems()
        Return a list of all graphs and reports
      • getMemorizedItems

        public java.util.List<ReportSpec> getMemorizedItems​(ReportSpec.Type type,
                                                            boolean includeBuiltins)
        Read the user's memorized graphs and/or reports from the current data file. The returned map is sorted by the user-selected names.
      • getMemorizedGraphs

        public java.util.List<ReportSpec> getMemorizedGraphs()
        Read the user's memorized graphs settings from the current data file. The returned map is sorted by the user-selected names.
      • getAllGraphs

        public java.util.List<ReportSpec> getAllGraphs()
        Get a list of all the known graphs, including memorized graphs
      • getMemorizedReports

        public java.util.List<ReportSpec> getMemorizedReports()
        Read the user's memorized reports from the current data file. The returned map is sorted by the user-selected names.
      • getAllReports

        public java.util.List<ReportSpec> getAllReports()
        Get a list of all the known text reports, including memorized reports