|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.moneydance.util.BasePropertyChangeReporter
com.moneydance.apps.md.model.MemorizedItemManager
public class MemorizedItemManager
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.
Field Summary | |
---|---|
static java.lang.String |
GRAPH_MEMORIZED
Property change event name for when a graph was memorized. |
static java.lang.String |
GRAPH_NAME_CHANGED
Property change event name for when the name of a graph was changed. |
static java.lang.String |
GRAPH_REMOVED
Property change event name for when a memorized graph was removed. |
static java.lang.String |
REPORT_MEMORIZED
Property change event name for when a report was memorized. |
static java.lang.String |
REPORT_NAME_CHANGED
Property change event name for when the name of a report was changed. |
static java.lang.String |
REPORT_REMOVED
Property change event name for when a memorized report was removed. |
Fields inherited from class com.moneydance.util.BasePropertyChangeReporter |
---|
_eventNotify, ALL_PROPERTIES |
Constructor Summary | |
---|---|
MemorizedItemManager(RootAccount rootAccount)
Constructor to allow the data file to be an immutable field. |
Method Summary | |
---|---|
void |
changeMemorizedGraphName(java.lang.String oldName,
java.lang.String newName)
Modify a memorized graph's name. |
void |
changeMemorizedReportName(java.lang.String oldName,
java.lang.String newName)
Modify a memorized report's name. |
java.lang.String |
getGraphClassFromUri(java.lang.String graphUri)
Given a graph URI, return the class name of the underlying graph object. |
java.lang.String |
getGraphURI(java.lang.String graphName)
Given a memorized graph name, return the URI associated with that graph. |
java.lang.String |
getGraphURIFromSettings(StreamTable graphSettings)
Given a memorized graph settings table, return the URI associated with that graph. |
java.util.Map<java.lang.String,StreamTable> |
getMemorizedGraphs()
Read the user's memorized graphs settings from the current data file. |
java.util.Map<java.lang.String,StreamTable> |
getMemorizedReports()
Read the user's memorized reports settings from the current data file. |
java.lang.String |
getReportClassFromUri(java.lang.String reportUri)
Given a report URI, return the class name of the underlying graph object. |
java.lang.String |
getReportURI(java.lang.String reportName)
Given a memorized report name, return the URI associated with that report. |
java.lang.String |
getReportURIFromSettings(StreamTable reportSettings)
Given a memorized report settings table, return the URI associated with that report. |
void |
memorizeGraph(java.lang.String graphName,
java.lang.String graphURI)
Save a memorized graph. |
void |
memorizeReport(java.lang.String reportName,
java.lang.String reportURI)
Save a memorized report. |
void |
removeMemorizedGraph(java.lang.String graphName)
Remove a memorized graph. |
void |
removeMemorizedReport(java.lang.String reportName)
Remove a memorized report. |
Methods inherited from class com.moneydance.util.BasePropertyChangeReporter |
---|
addPropertyChangeListener, notifyAllListeners, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REPORT_NAME_CHANGED
public static final java.lang.String REPORT_MEMORIZED
public static final java.lang.String REPORT_REMOVED
public static final java.lang.String GRAPH_NAME_CHANGED
public static final java.lang.String GRAPH_MEMORIZED
public static final java.lang.String GRAPH_REMOVED
Constructor Detail |
---|
public MemorizedItemManager(RootAccount rootAccount)
rootAccount
- The associated data file.Method Detail |
---|
public void removeMemorizedGraph(java.lang.String graphName)
graphName
- The name of the memorized graph to remove.public void changeMemorizedGraphName(java.lang.String oldName, java.lang.String newName)
oldName
- The previous name of the memorized graph.newName
- The new, valid name for the same graph.public void memorizeGraph(java.lang.String graphName, java.lang.String graphURI)
graphName
- The name of the graph to memorize.graphURI
- The graph parameters to save.public java.lang.String getGraphURI(java.lang.String graphName)
graphName
- The unique name of the memorized graph.
null
if the graph cannot be found.public java.lang.String getGraphURIFromSettings(StreamTable graphSettings)
graphSettings
- The settings for the memorized graph.
public java.util.Map<java.lang.String,StreamTable> getMemorizedGraphs()
public java.lang.String getGraphClassFromUri(java.lang.String graphUri)
graphUri
- The URI for the graph.
null
if not found.public void removeMemorizedReport(java.lang.String reportName)
reportName
- The name of the memorized report to remove.public void changeMemorizedReportName(java.lang.String oldName, java.lang.String newName)
oldName
- The previous name of the memorized report.newName
- The new, valid name for the same report.public void memorizeReport(java.lang.String reportName, java.lang.String reportURI)
reportName
- The name of the report to memorize.reportURI
- The report parameters to save.public java.lang.String getReportURI(java.lang.String reportName)
reportName
- The unique name of the memorized report.
null
if the report cannot be found.public java.lang.String getReportURIFromSettings(StreamTable reportSettings)
reportSettings
- The settings for the memorized report.
public java.util.Map<java.lang.String,StreamTable> getMemorizedReports()
public java.lang.String getReportClassFromUri(java.lang.String reportUri)
reportUri
- The URI for the report.
null
if not found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |