コード例 #1
0
  @FXML
  private void initialize() {
    // Only show visible investment accounts
    accountComboBox.setPredicate(
        account -> account.instanceOf(AccountType.INVEST) && account.isVisible());

    final Preferences preferences = getPreferences();

    subAccountCheckBox.setSelected(preferences.getBoolean(RECURSIVE, true));
    longNameCheckBox.setSelected(preferences.getBoolean(VERBOSE, false));
  }
コード例 #2
0
  @Override
  @Nullable
  public JasperPrint createJasperPrint(final boolean formatForCSV) {
    final Account account = accountComboBox.getValue();

    if (account != null) { // a null account is possible
      final PortfolioReportTableModel model =
          new PortfolioReportTableModel(account.getCurrencyNode());

      return createJasperPrint(model, formatForCSV);
    }

    return null;
  }
コード例 #3
0
 @Override
 public String getReportName() {
   return accountComboBox.getValue().getName()
       + " - "
       + resources.getString("Title.PortfolioReport");
 }