lastDayOfTheMonth.setMonthOfYear(monthCombo.getSelectionIndex()+1);
lastDayOfTheMonth.setYear(yearSpinner.getSelection());
lastDayOfTheMonth.setLastDayOfMonth();
for (int i = 0; i < ((finantialInfoList == null) ? 0 : finantialInfoList.size()); i++) {
FinancialInfo info = finantialInfoList.get(i);
if((info.getDate().afterOrEqualsDay(firstDayOfTheMonth) && info.getDate().beforeOrEqualsDay(lastDayOfTheMonth) && info.getFrequence().equals("Apenas uma vez"))
||
( info.getFrequence().equals("Mensalmente") )
||
( (info.getDate().getMonth() == firstDayOfTheMonth.getMonth()) && info.getFrequence().equals("Anualmente") )
) {
if(info.getDate().beforeOrEqualsDay(lastDayOfTheMonth)) {
if(!info.isFinished()) {
createTableItem(i, info);
} else if(info.getFinishDate().afterOrEqualsDay(firstDayOfTheMonth)) {
createTableItem(i, info);
}
}
}
}