public class BlogArchive extends Object
BlogArchive.Period
s.Modifier and Type | Class and Description |
---|---|
class |
BlogArchive.Period
BlogArchive.Period represents a period in the blog archive.
|
Constructor and Description |
---|
BlogArchive(Blog b,
int m,
DateFormat df)
Creates a new
BlogArchive for the specified blog. |
Modifier and Type | Method and Description |
---|---|
List<BlogArchive.Period> |
getPeriods()
Returns the periods in this blog archive in descending order.
|
static String |
getPeriodTitle(String period,
DateFormat monthDf)
Returns the title for a period.
|
static String |
getPeriodTitle(String period,
DateFormat monthDf,
DateFormat yearDf)
Returns the title for a period.
|
public BlogArchive(Blog b, int m, DateFormat df)
BlogArchive
for the specified blog. The optional date format is used to render the
titles of the periods. The default is MMMMM yyyyy.b
- The blogm
- The maximum number of periods (optional)df
- The date format (optional)public List<BlogArchive.Period> getPeriods()
public static String getPeriodTitle(String period, DateFormat monthDf)
period
- The periodmonthDf
- The date format (optional)public static String getPeriodTitle(String period, DateFormat monthDf, DateFormat yearDf)
period
- The periodmonthDf
- The date format for a date containing a month (optional)yearDf
- The date format for a date only containing a year (optional)"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"