org.homeunix.thecave.buddi.plugin.builtin.report
Class IncomeExpenseReportByCategory

java.lang.Object
  extended by org.homeunix.thecave.buddi.plugin.api.PreferenceAccess
      extended by org.homeunix.thecave.buddi.plugin.api.BuddiReportPlugin
          extended by org.homeunix.thecave.buddi.plugin.builtin.report.IncomeExpenseReportByCategory
All Implemented Interfaces:
MossPlugin

public class IncomeExpenseReportByCategory
extends BuddiReportPlugin

Built-in plugin. Feel free to use this as an example on how to make report plugins (although this one is kind of ugly, so you may not want to use it..)

Author:
wyatt

Field Summary
static long serialVersionUID
           
 
Constructor Summary
IncomeExpenseReportByCategory()
           
 
Method Summary
 PluginReportDateRangeChoices getDateRangeChoice()
          The type of plugin this should be.
 java.lang.String getDescription()
          Returns the plugin description.
 java.lang.String getName()
          Returns the plugin name.
 HtmlPage getReport(ImmutableDocument model, MossDocumentFrame frame, java.util.Date startDate, java.util.Date endDate)
          Returns an in-memory version of the printed page, as an HTML file.
 boolean isPluginActive()
          Should this plugin be activated? Most people can just put true here; if there is some logic which determines if this is to be shown or not, though, you can add it here.
 
Methods inherited from class org.homeunix.thecave.buddi.plugin.api.BuddiReportPlugin
getMaximumVersion, getMinimumVersion, getReportGUI
 
Methods inherited from class org.homeunix.thecave.buddi.plugin.api.PreferenceAccess
getListPreference, getPreference, getSecurePreference, putListPreference, putPreference, putSecurePreference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

IncomeExpenseReportByCategory

public IncomeExpenseReportByCategory()
Method Detail

getReport

public HtmlPage getReport(ImmutableDocument model,
                          MossDocumentFrame frame,
                          java.util.Date startDate,
                          java.util.Date endDate)
Description copied from class: BuddiReportPlugin
Returns an in-memory version of the printed page, as an HTML file. An HtmlPage object is just a small class containing a string with the HTML text in it, and a map of String to BufferedImage containing all the images referenced in the HTML, by name. See HtmlPage for more information on what is needed.

Specified by:
getReport in class BuddiReportPlugin
startDate - Start of report period
endDate - End of report period
Returns:

getName

public java.lang.String getName()
Description copied from interface: MossPlugin
Returns the plugin name. This may be used in different places, depending on the type of plugin.

Returns:

getDescription

public java.lang.String getDescription()
Description copied from interface: MossPlugin
Returns the plugin description. This may be used in different places, depending on the type of plugin.

Returns:

getDateRangeChoice

public PluginReportDateRangeChoices getDateRangeChoice()
Description copied from class: BuddiReportPlugin
The type of plugin this should be. Can choose between one of the following enum values: INTERVAL, START_ONLY, END_ONLY

Specified by:
getDateRangeChoice in class BuddiReportPlugin
Returns:
A constant enum value which determines how the plugin loader should display this plugin.

isPluginActive

public boolean isPluginActive()
Description copied from interface: MossPlugin
Should this plugin be activated? Most people can just put true here; if there is some logic which determines if this is to be shown or not, though, you can add it here.

Returns: