Class ReportSpecManager
- java.lang.Object
-
- com.infinitekind.moneydance.model.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 Summary
Constructors Constructor Description ReportSpecManager(AccountBook book)
Constructor to allow the data file to be an immutable field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(MemorizedItemListener listener)
Register an object that would like to receive notification when transactions have been modified, added, or removed.java.util.List<ReportSpec>
getAllGraphs()
Get a list of all the known graphs, including memorized graphsjava.util.List<ReportSpec>
getAllItems()
Return a list of all graphs and reportsjava.util.List<ReportSpec>
getAllMemorizedItems()
Return a list of all memorized graphs and reportsjava.util.List<ReportSpec>
getAllReports()
Get a list of all the known text reports, including memorized reportsjava.util.List<ReportSpec>
getMemorizedGraphs()
Read the user's memorized graphs settings from the current data file.java.util.List<ReportSpec>
getMemorizedItems(ReportSpec.Type type, boolean includeBuiltins)
Read the user's memorized graphs and/or reports from the current data file.java.util.List<ReportSpec>
getMemorizedReports()
Read the user's memorized reports from the current data file.void
removeListener(MemorizedItemListener listener)
-
-
-
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.
-
removeListener
public void removeListener(MemorizedItemListener listener)
-
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
-
-