fi.paatti.mobile.views.listview
Class ListViewLogic

java.lang.Object
  extended by fi.paatti.mobile.views.listview.ListViewLogic
All Implemented Interfaces:
MobileViewLogic
Direct Known Subclasses:
EventListViewLogic, MessageListViewLogic

public abstract class ListViewLogic
extends Object
implements MobileViewLogic

Logic for the list view. A base class for the actual logics of list views.

Since:
0.0.2
Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi @date 17.3.2012
 

Constructor Summary
ListViewLogic(MobileViewHandler viewHandler, ListView listView)
          Constructor.
 
Method Summary
 HashMap<Object,com.vaadin.ui.Component> getFooterComponents()
          Get all the footer components (buttons).
 MobileViewHandler getViewHandler()
          Get the application view handler.
abstract  void listItemClicked(Object listItemId)
          This event is thrown when the button of the list item is clicked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.paatti.mobile.mobileview.MobileViewLogic
footerButtonAction
 

Constructor Detail

ListViewLogic

public ListViewLogic(MobileViewHandler viewHandler,
                     ListView listView)
Constructor.

Parameters:
viewHandler - The application view handler.
listView - The view that uses this logic.
Method Detail

getViewHandler

public MobileViewHandler getViewHandler()
Get the application view handler.

Returns:

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.

listItemClicked

public abstract void listItemClicked(Object listItemId)
This event is thrown when the button of the list item is clicked.

Parameters:
listItemId - The ID of the clicked item.


Copyright © 2012. All Rights Reserved.