public class ListJoinedEventsController extends Object
| Constructor and Description |
|---|
ListJoinedEventsController() |
| Modifier and Type | Method and Description |
|---|---|
List<es.uvigo.esei.dgss.letta.domain.entities.Event> |
getEventList()
Retrieves a
List of Events from
EventEJB.countAttendingEvents(), sorted by desccending date and
ascending title. |
String |
getIconFor(es.uvigo.esei.dgss.letta.domain.entities.Event.Category eventType)
Returns a
String representing the path to the corresponding
Event.Category icon image. |
int |
getPageIndex() |
int |
getPages() |
ArrayList<String> |
getPagesLinks() |
void |
init()
Initialize the number of pages in a paginated page.
|
boolean |
isAfter(LocalDateTime d) |
void |
jumpToPage(String pageNumber)
Update the value of pageIndex and redirect.
|
void |
listJoinedEventsNext()
Method to be called when the next command button is pressed
|
void |
listJoinedEventsPrev()
Method to be called when the previous command button is pressed
|
void |
setPageIndex(int pageIndex) |
void |
setPages(int pages) |
void |
setPagesLinks(ArrayList<String> pagesLinks) |
public int getPages()
public void setPages(int pages)
public int getPageIndex()
public void setPageIndex(int pageIndex)
@PostConstruct public void init()
public List<es.uvigo.esei.dgss.letta.domain.entities.Event> getEventList()
List of Events from
EventEJB.countAttendingEvents(), sorted by desccending date and
ascending title.public void listJoinedEventsNext()
public void listJoinedEventsPrev()
public String getIconFor(es.uvigo.esei.dgss.letta.domain.entities.Event.Category eventType)
String representing the path to the corresponding
Event.Category icon image.eventType - the Event.Category to be translated into a icon path.public void jumpToPage(String pageNumber)
pageNumber, - number of page topublic boolean isAfter(LocalDateTime d)
Copyright © 2015. All rights reserved.