public class ReportSpecManager
extends java.lang.Object
Constructor and Description |
---|
ReportSpecManager(AccountBook book)
Constructor to allow the data file to be an immutable field.
|
Modifier and Type | Method and 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 graphs
|
java.util.List<ReportSpec> |
getAllItems()
Return a list of all graphs and reports
|
java.util.List<ReportSpec> |
getAllMemorizedItems()
Return a list of all memorized graphs and reports
|
java.util.List<ReportSpec> |
getAllReports()
Get a list of all the known text reports, including memorized reports
|
java.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) |
public ReportSpecManager(AccountBook book)
book
- The associated data file.public void addListener(MemorizedItemListener listener)
public void removeListener(MemorizedItemListener listener)
public java.util.List<ReportSpec> getAllMemorizedItems()
public java.util.List<ReportSpec> getAllItems()
public java.util.List<ReportSpec> getMemorizedItems(ReportSpec.Type type, boolean includeBuiltins)
public java.util.List<ReportSpec> getMemorizedGraphs()
public java.util.List<ReportSpec> getAllGraphs()
public java.util.List<ReportSpec> getMemorizedReports()
public java.util.List<ReportSpec> getAllReports()