fi.paatti.mobile.views.eventview
Class EventViewLogic

java.lang.Object
  extended by fi.paatti.mobile.views.eventview.EventViewLogic
All Implemented Interfaces:
MobileViewLogic

public class EventViewLogic
extends Object
implements MobileViewLogic

View logic for the event view.

Since:
0.0.2
Author:
Jari Salokangas, jari.p.t.salokangas@student.jyu.fi, Lauri Satokangas. lauri.n.satokangas@srudent.jyu.fi
 

Constructor Summary
EventViewLogic(MobileViewHandler viewHandler, EventView eventView)
          The constructor.
 
Method Summary
protected  void endEvent()
          End the event.
 void footerButtonAction(Object buttonId)
          What will be done when footer (left, middle, right) button has been clicked.
 HashMap<Object,com.vaadin.ui.Component> getFooterComponents()
          Get all the footer components (buttons).
protected  void setChoices(com.vaadin.data.util.sqlcontainer.SQLContainer choiceContainer)
          Set the containet containing the choices for the event.
protected  void setTasks(com.vaadin.data.util.sqlcontainer.SQLContainer taskContainer)
          Set the container containing the tasks for the event.
protected  void startEvent(com.vaadin.data.util.sqlcontainer.SQLContainer taskContainer, com.vaadin.data.util.sqlcontainer.SQLContainer choiceContainer)
          Start a new event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventViewLogic

public EventViewLogic(MobileViewHandler viewHandler,
                      EventView eventView)
The constructor.

Parameters:
viewHandler - The applications viewhandler
eventView - The view that uses this logic
Method Detail

footerButtonAction

public void footerButtonAction(Object buttonId)
Description copied from interface: MobileViewLogic
What will be done when footer (left, middle, right) button has been clicked.

Specified by:
footerButtonAction in interface MobileViewLogic
Parameters:
buttonId - The id of the button.

getFooterComponents

public HashMap<Object,com.vaadin.ui.Component> getFooterComponents()
Description copied from interface: MobileViewLogic
Get all the footer components (buttons).

Specified by:
getFooterComponents in interface MobileViewLogic
Returns:
The footer components.

setTasks

protected void setTasks(com.vaadin.data.util.sqlcontainer.SQLContainer taskContainer)
Set the container containing the tasks for the event.

Parameters:
taskContainer -

setChoices

protected void setChoices(com.vaadin.data.util.sqlcontainer.SQLContainer choiceContainer)
Set the containet containing the choices for the event.

Parameters:
choiceContainer -

startEvent

protected void startEvent(com.vaadin.data.util.sqlcontainer.SQLContainer taskContainer,
                          com.vaadin.data.util.sqlcontainer.SQLContainer choiceContainer)
Start a new event.

Parameters:
taskContainer - All the tasks that are in the event.
choiceContainer - All the choices that are in tasks (that are in the event)

endEvent

protected void endEvent()
End the event. Save the collected task data and open the EventListView.



Copyright © 2012. All Rights Reserved.