|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfi.paatti.mobile.views.listview.ListViewLogic
fi.paatti.mobile.views.eventlistview.EventListViewLogic
public class EventListViewLogic
The logic for the event list view.
![]() |
![]() |
| Constructor Summary | |
|---|---|
EventListViewLogic(MobileViewHandler viewHandler,
EventListView eventListView)
Constructor. |
|
| Method Summary | |
|---|---|
void |
footerButtonAction(Object buttonId)
What will be done when footer (left, middle, right) button has been clicked. |
String |
getEstimatedTimeAsString(com.vaadin.data.Item eventItem)
Get the estimated time of the event as a String. |
int |
getEventStatus(com.vaadin.data.Item eventItem)
Checks the event time and returns the correct status for the event based on its time. |
String |
getEventTimeAsString(com.vaadin.data.Item eventItem)
Get the event time as String. |
HashMap<Object,com.vaadin.ui.Component> |
getFooterComponents()
Get all the footer components (buttons). |
void |
listItemClicked(Object eventId)
This event is thrown when the button of the list item is clicked. |
| Methods inherited from class fi.paatti.mobile.views.listview.ListViewLogic |
|---|
getViewHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventListViewLogic(MobileViewHandler viewHandler,
EventListView eventListView)
viewHandler - The apllication´s view handler.eventListView - The event list view.| Method Detail |
|---|
public void footerButtonAction(Object buttonId)
MobileViewLogic
buttonId - The id of the button.public HashMap<Object,com.vaadin.ui.Component> getFooterComponents()
MobileViewLogic
getFooterComponents in interface MobileViewLogicgetFooterComponents in class ListViewLogicpublic void listItemClicked(Object eventId)
ListViewLogic
listItemClicked in class ListViewLogiceventId - The ID of the clicked item.public String getEventTimeAsString(com.vaadin.data.Item eventItem)
eventItem - The event item
public int getEventStatus(com.vaadin.data.Item eventItem)
eventItem - The item that holds the events (time) values.
public String getEstimatedTimeAsString(com.vaadin.data.Item eventItem)
eventItem - The event item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||