jgnash.ui.report.compiled
Class PortfolioReport

java.lang.Object
  extended by jgnash.ui.report.jasper.DynamicJasperReport
      extended by jgnash.ui.report.compiled.PortfolioReport

public class PortfolioReport
extends DynamicJasperReport

This is a portfolio report for Investment Accounts

Version:
$Id$
Author:
Vijil E C, Craig Cavanaugh, Juan Jose Garcia Ripoll

Nested Class Summary
 class PortfolioReport.PortfolioReportTableModel
           
 
Field Summary
private  AccountListComboBox accountCombo
           
private static java.lang.String RECURSIVE
           
private  javax.swing.JButton refreshButton
           
private  javax.swing.JCheckBox subAccountCheckBox
           
private static java.lang.String USE_LONG_NAMES
           
private  javax.swing.JCheckBox verboseCheckBox
           
 
Fields inherited from class jgnash.ui.report.jasper.DynamicJasperReport
logger, rb
 
Constructor Summary
PortfolioReport()
           
PortfolioReport(Account account)
           
 
Method Summary
private  javax.swing.JPanel buildOptionPanel()
           
 net.sf.jasperreports.engine.JasperPrint createJasperPrint(boolean formatForCSV)
          Creates a JasperPrint object.
 java.lang.String getGrandTotalLegend()
          Returns the legend for the grand total
 java.lang.String getGroupFooterLabel()
          Returns the general label for the group footer
 javax.swing.JPanel getReportController()
          Creates a report control panel.
 java.lang.String getReportName()
          Returns the name of the report
protected  void refreshReport()
           
 
Methods inherited from class jgnash.ui.report.jasper.DynamicJasperReport
createJasperPrint, getPageFormat, getPreferences, getSubTitle, setPageFormat, setViewer, showReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subAccountCheckBox

private javax.swing.JCheckBox subAccountCheckBox

verboseCheckBox

private javax.swing.JCheckBox verboseCheckBox

accountCombo

private AccountListComboBox accountCombo

refreshButton

private javax.swing.JButton refreshButton

USE_LONG_NAMES

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

RECURSIVE

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

PortfolioReport

public PortfolioReport()

PortfolioReport

public PortfolioReport(Account account)
Method Detail

refreshReport

protected void refreshReport()
Overrides:
refreshReport in class DynamicJasperReport

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 object

getReportController

public javax.swing.JPanel getReportController()
Creates a report control panel. May return null if a panel is not used The ReportController is responsible for dynamic report options with the exception of page format options

Specified by:
getReportController in class DynamicJasperReport
Returns:
control panel

buildOptionPanel

private javax.swing.JPanel buildOptionPanel()

getReportName

public java.lang.String getReportName()
Returns the name of the report

Specified by:
getReportName in class DynamicJasperReport
Returns:
report name

getGrandTotalLegend

public java.lang.String getGrandTotalLegend()
Returns the legend for the grand total

Specified by:
getGrandTotalLegend in class DynamicJasperReport
Returns:
report name

getGroupFooterLabel

public java.lang.String getGroupFooterLabel()
Description copied from class: DynamicJasperReport
Returns the general label for the group footer

Specified by:
getGroupFooterLabel in class DynamicJasperReport
Returns:
footer label