Exemplo n.º 1
0
 @Override
 public void execute() {
   Date now = new Date();
   Date beginDate = DateUtils.getFirstDayOfYear(now);
   Date endDate = DateUtils.addYears(beginDate, 1);
   applyFilter(beginDate, endDate);
 }
Exemplo n.º 2
0
 @Override
 public void execute() {
   Date date = CalendarUtil.copyDate(currentValue);
   Date beginDate = DateUtils.getFirstDayOfYear(date);
   Date endDate = CalendarUtil.copyDate(beginDate);
   CalendarUtil.addMonthsToDate(endDate, 12);
   applyFilter(beginDate, endDate);
 }
Exemplo n.º 3
0
 @Override
 public void execute() {
   Date now = new Date();
   int qr = DateUtils.getMonth(now) / 3;
   Date beginDate = DateUtils.getFirstDayOfYear(now);
   CalendarUtil.addMonthsToDate(beginDate, 3 * qr);
   Date endDate = CalendarUtil.copyDate(beginDate);
   CalendarUtil.addMonthsToDate(endDate, 3);
   applyFilter(beginDate, endDate);
 }