Some code refresh.

This commit is contained in:
Tom Vahlman 2012-02-14 14:34:20 +01:00
parent c533aa0226
commit bca83e5c78

@ -85,13 +85,14 @@ public class ProjectIdeaPeriodPanel extends Panel {
for (ProjectClass p : projectClasses) {
ApplicationPeriod a = applicationPeriodDao.getNextPeriodByClass(p, new Date());
if (a != null)
if (a != null) {
nextPeriodList.add("Next upcoming " + p.getName() + " period is open between: " +
new DateFormatter(DateFormatter.FORMAT.DEFAULT).createFormattedString(a.getStartDate()) + " and " +
new DateFormatter(DateFormatter.FORMAT.DEFAULT).createFormattedString(a.getEndDate()));
else
} else {
nextPeriodList.add("Next upcoming " + p.getName() + " period opens: N/A");
}
}
}
ListView<String> nextPeriodView = new ListView<String>("nextPeriodView", nextPeriodList) {
private static final long serialVersionUID = 1L;