Package net.sourceforge.pebble.web.view.impl

Examples of net.sourceforge.pebble.web.view.impl.LogSummaryByMonthView


      int year = Integer.parseInt(yearAsStriing);
      int month = Integer.parseInt(monthAsString)-1;
      cal.set(Calendar.YEAR, year);
      cal.set(Calendar.MONTH, month);
      logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1);
      view = new LogSummaryByMonthView();
      registerObjectsForNavigation(blog, blog.getBlogForMonth(year, month+1));
    } else if (yearAsStriing != null && yearAsStriing.length() > 0) {
      cal.set(Calendar.YEAR, Integer.parseInt(yearAsStriing));
      logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR));
      view = new LogSummaryByYearView();
    } else {
      // get the log for this monthAsString
      logSummary = blog.getLogger().getLogSummary(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1);
      view = new LogSummaryByMonthView();
      registerObjectsForNavigation(blog, blog.getBlogForThisMonth());
    }

    SimpleDateFormat yearFormatter = new SimpleDateFormat("yyyy", Locale.ENGLISH);
    yearFormatter.setTimeZone(blog.getTimeZone());
View Full Code Here

TOP

Related Classes of net.sourceforge.pebble.web.view.impl.LogSummaryByMonthView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.