|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MessagesView | Line # 13 | 4 | 0% | 3 | 7 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
No Tests | |||
1 | package net.sourceforge.pebble.web.view.impl; | |
2 | ||
3 | import net.sourceforge.pebble.web.view.HtmlView; | |
4 | ||
5 | import java.util.List; | |
6 | import java.util.Collections; | |
7 | ||
8 | /** | |
9 | * Represents the messages page. | |
10 | * | |
11 | * @author Simon Brown | |
12 | */ | |
13 | public class MessagesView extends HtmlView { | |
14 | ||
15 | /** | |
16 | * Prepares the view for presentation. | |
17 | */ | |
18 | 0 |
![]() |
19 | 0 | List list = (List)getModel().get("messages"); |
20 | 0 | Collections.reverse(list); |
21 | } | |
22 | ||
23 | /** | |
24 | * Gets the title of this view. | |
25 | * | |
26 | * @return the title as a String | |
27 | */ | |
28 | 0 |
![]() |
29 | 0 | return null; |
30 | } | |
31 | ||
32 | /** | |
33 | * Gets the URI that this view represents. | |
34 | * | |
35 | * @return the URI as a String | |
36 | */ | |
37 | 0 |
![]() |
38 | 0 | return "/WEB-INF/jsp/viewMessages.jsp"; |
39 | } | |
40 | ||
41 | } |
|