Interface FeatureModuleContext


public interface FeatureModuleContext
  • Method Summary

    Modifier and Type Method Description
    int getBuild()
    Returns the build number of Moneydance.
    AccountBook getCurrentAccountBook()
    Returns the account book object that acts as a wrapper for the entire data model.
    Account getRootAccount()
    Returns the root account object.
    java.lang.String getVersion()
    Returns the string representation of the current version of Moneydance.
    void registerAccountEditor​(FeatureModule module, int accountType, AccountEditor editor)
    Register the given AccountEditor so that it can be used to edit information about accounts within Moneydance.
    void registerFeature​(FeatureModule module, java.lang.String parameters, java.awt.Image buttonImage, java.lang.String buttonText)
    This will notify Moneydance that this extension provides a feature that may be useful to the user.
    void registerHomePageView​(FeatureModule module, HomePageView view)
    This will notify Moneydance that this extension provides a view that can be embedded in the home page.
    void showURL​(java.lang.String url)
    Show the following URL in Moneydance.
  • Method Details

    • getRootAccount

      Account getRootAccount()
      Returns the root account object. From this object, all data and objects that are used by Moneydance can be accessed.
    • getCurrentAccountBook

      AccountBook getCurrentAccountBook()
      Returns the account book object that acts as a wrapper for the entire data model.
    • getVersion

      java.lang.String getVersion()
      Returns the string representation of the current version of Moneydance.
    • getBuild

      int getBuild()
      Returns the build number of Moneydance. This build number is incremented with every public release of Moneydance.
    • showURL

      void showURL​(java.lang.String url)
      Show the following URL in Moneydance. This can be a simple http URL or it can be a moneydance: URL. URL's starting with "moneydance:" invoke features in other parts of the program. Full documentation of the features invokable through moneydance URLs is not yet available. Please email sreilly at moneydance.com for documentation.
    • registerFeature

      void registerFeature​(FeatureModule module, java.lang.String parameters, java.awt.Image buttonImage, java.lang.String buttonText)
      This will notify Moneydance that this extension provides a feature that may be useful to the user. With the GUI version of Moneydance this will cause a button to be added to the main toolbar with the given button image. The parameters value will be passed to the invoke(String) method when the registered feature is invoked by the user.
    • registerHomePageView

      void registerHomePageView​(FeatureModule module, HomePageView view)
      This will notify Moneydance that this extension provides a view that can be embedded in the home page. The view is provided, but is only activated when the view is added to the home page. Note: This is only available in build 256 and later.
    • registerAccountEditor

      void registerAccountEditor​(FeatureModule module, int accountType, AccountEditor editor)
      Register the given AccountEditor so that it can be used to edit information about accounts within Moneydance.