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
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 Details
-
ReportSpecManager
Constructor to allow the data file to be an immutable field.- Parameters:
book
- The associated data file.
-
-
Method Details
-
addListener
Register an object that would like to receive notification when transactions have been modified, added, or removed. -
removeListener
-
getAllMemorizedItems
Return a list of all memorized graphs and reports -
getAllItems
Return a list of all graphs and reports -
getMemorizedItems
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
Read the user's memorized graphs settings from the current data file. The returned map is sorted by the user-selected names. -
getAllGraphs
Get a list of all the known graphs, including memorized graphs -
getMemorizedReports
Read the user's memorized reports from the current data file. The returned map is sorted by the user-selected names. -
getAllReports
Get a list of all the known text reports, including memorized reports
-