BrightSide Workbench Full Report + Source Code
org.turro.financials.account.logic.StatementSet Class Reference
Inheritance diagram for org.turro.financials.account.logic.StatementSet:
Collaboration diagram for org.turro.financials.account.logic.StatementSet:

Public Member Functions

 StatementSet ()
 
 StatementSet (double initialDebit, double initialCredit, Collection<? extends StatementEntry > c)
 
String getAccountSearch ()
 
void setAccountSearch (String accountSearch)
 
Date getFromDate ()
 
void setFromDate (Date fromDate)
 
Date getToDate ()
 
void setToDate (Date toDate)
 
ValidatedStatus getValidated ()
 
void setValidated (ValidatedStatus validated)
 
RegisterView getView ()
 
void setView (RegisterView view)
 
void previous ()
 
void next ()
 
void refreshData ()
 
void addBank ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file StatementSet.java.

Constructor & Destructor Documentation

◆ StatementSet() [1/2]

org.turro.financials.account.logic.StatementSet.StatementSet ( )

Definition at line 39 of file StatementSet.java.

39  {
40  initiateValues();
41  }

◆ StatementSet() [2/2]

org.turro.financials.account.logic.StatementSet.StatementSet ( double  initialDebit,
double  initialCredit,
Collection<? extends StatementEntry c 
)

Definition at line 43 of file StatementSet.java.

43  {
44  super(c);
45  add(new StatementFirst(initialDebit, initialCredit));
46  checkBalance();
47  }

Member Function Documentation

◆ addBank()

void org.turro.financials.account.logic.StatementSet.addBank ( )

Definition at line 115 of file StatementSet.java.

115  {
116  if(!hasBank()) {
117  addAll(BankAccounts.getMovements(accountSearch, fromDate, toDate));
118  }
119  }
Here is the call graph for this function:

◆ getAccountSearch()

String org.turro.financials.account.logic.StatementSet.getAccountSearch ( )

Definition at line 49 of file StatementSet.java.

49  {
50  return accountSearch;
51  }

◆ getFromDate()

Date org.turro.financials.account.logic.StatementSet.getFromDate ( )

Definition at line 57 of file StatementSet.java.

57  {
58  return fromDate;
59  }

◆ getToDate()

Date org.turro.financials.account.logic.StatementSet.getToDate ( )

Definition at line 65 of file StatementSet.java.

65  {
66  return toDate;
67  }

◆ getValidated()

ValidatedStatus org.turro.financials.account.logic.StatementSet.getValidated ( )

Definition at line 73 of file StatementSet.java.

73  {
74  return validated;
75  }

◆ getView()

RegisterView org.turro.financials.account.logic.StatementSet.getView ( )

Definition at line 81 of file StatementSet.java.

81  {
82  return view;
83  }

◆ next()

void org.turro.financials.account.logic.StatementSet.next ( )

Definition at line 95 of file StatementSet.java.

95  {
96  long millis = toDate.getTime() - fromDate.getTime();
97  fromDate.setTime(toDate.getTime());
98  toDate.setTime(fromDate.getTime() + millis);
99  }

◆ previous()

void org.turro.financials.account.logic.StatementSet.previous ( )

Definition at line 89 of file StatementSet.java.

89  {
90  long millis = toDate.getTime() - fromDate.getTime();
91  toDate.setTime(fromDate.getTime());
92  fromDate.setTime(toDate.getTime() - millis);
93  }

◆ refreshData()

void org.turro.financials.account.logic.StatementSet.refreshData ( )

Definition at line 101 of file StatementSet.java.

101  {
102  clear();
103  if(accountSearch == null) return;
104  Dao dao = new FinancialsPU();
105  StatementFirst sf = new StatementFirst();
106  sf.setAccountSearch(accountSearch);
107  sf.setFromDate(fromDate);
108  sf.setView(view);
109  sf.refreshData(dao);
110  add(sf);
111  addEntries(dao);
112  checkBalance();
113  }
Here is the call graph for this function:

◆ setAccountSearch()

void org.turro.financials.account.logic.StatementSet.setAccountSearch ( String  accountSearch)

Definition at line 53 of file StatementSet.java.

53  {
54  this.accountSearch = accountSearch;
55  }

◆ setFromDate()

void org.turro.financials.account.logic.StatementSet.setFromDate ( Date  fromDate)

Definition at line 61 of file StatementSet.java.

61  {
62  this.fromDate = fromDate;
63  }

◆ setToDate()

void org.turro.financials.account.logic.StatementSet.setToDate ( Date  toDate)

Definition at line 69 of file StatementSet.java.

69  {
70  this.toDate = toDate;
71  }

◆ setValidated()

void org.turro.financials.account.logic.StatementSet.setValidated ( ValidatedStatus  validated)

Definition at line 77 of file StatementSet.java.

77  {
78  this.validated = validated;
79  }

◆ setView()

void org.turro.financials.account.logic.StatementSet.setView ( RegisterView  view)

Definition at line 85 of file StatementSet.java.

85  {
86  this.view = view;
87  }

The documentation for this class was generated from the following file: