jgnash.ui.report.compiled
Class AbstractSumByTypeReport

java.lang.Object
  extended by jgnash.ui.report.jasper.DynamicJasperReport
      extended by jgnash.ui.report.compiled.AbstractSumByTypeReport
Direct Known Subclasses:
BalanceSheetReport, NetWorthReport

abstract class AbstractSumByTypeReport
extends DynamicJasperReport

Abstract Report that groups and sums by AccountGroup and has a line for a global sum

Version:
$Id$
Author:
Craig Cavanaugh

Nested Class Summary
private static class AbstractSumByTypeReport.ReportModel
           
 
Field Summary
private  DatePanel endDateField
           
private static java.lang.String HIDE_ZERO_BALANCE
           
private  javax.swing.JCheckBox hideZeroBalanceAccounts
           
private static java.lang.String MONTHS
           
private  javax.swing.JButton refreshButton
           
private  DatePanel startDateField
           
 
Fields inherited from class jgnash.ui.report.jasper.DynamicJasperReport
logger, rb
 
Constructor Summary
AbstractSumByTypeReport()
           
 
Method Summary
 net.sf.jasperreports.engine.JasperPrint createJasperPrint(boolean formatForCSV)
          Creates a JasperPrint object
private  AbstractSumByTypeReport.ReportModel createTableModel(java.util.Date startDate, java.util.Date endDate)
           
protected abstract  java.util.List<AccountGroup> getAccountGroups()
           
private  java.util.List<Account> getAccountList(java.util.Set<AccountType> types)
           
 javax.swing.JPanel getReportController()
          Creates a report control panel.
protected  void refreshReport()
           
 
Methods inherited from class jgnash.ui.report.jasper.DynamicJasperReport
createJasperPrint, getGrandTotalLegend, getGroupFooterLabel, getPageFormat, getPreferences, getReportName, getSubTitle, setPageFormat, setViewer, showReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startDateField

private DatePanel startDateField

endDateField

private DatePanel endDateField

refreshButton

private javax.swing.JButton refreshButton

hideZeroBalanceAccounts

private javax.swing.JCheckBox hideZeroBalanceAccounts

HIDE_ZERO_BALANCE

private static final java.lang.String HIDE_ZERO_BALANCE
See Also:
Constant Field Values

MONTHS

private static final java.lang.String MONTHS
See Also:
Constant Field Values
Constructor Detail

AbstractSumByTypeReport

public AbstractSumByTypeReport()
Method Detail

refreshReport

protected void refreshReport()
Overrides:
refreshReport in class DynamicJasperReport

getAccountGroups

protected abstract java.util.List<AccountGroup> getAccountGroups()

createTableModel

private AbstractSumByTypeReport.ReportModel createTableModel(java.util.Date startDate,
                                                             java.util.Date endDate)

getAccountList

private java.util.List<Account> getAccountList(java.util.Set<AccountType> types)

createJasperPrint

public net.sf.jasperreports.engine.JasperPrint createJasperPrint(boolean formatForCSV)
Creates a JasperPrint object

Specified by:
createJasperPrint in class DynamicJasperReport
Parameters:
formatForCSV - true if the report should be formated for CSV export
Returns:
JasperPrint

getReportController

public javax.swing.JPanel getReportController()
Creates a report control panel. May return null if a panel is not used

Specified by:
getReportController in class DynamicJasperReport
Returns:
control panel