CopaApp
Change of Plan Application
 All Classes Functions Variables Pages
Classes | Public Member Functions | List of all members
unicopa.copa.app.gui.EventAdapter Class Reference

This Adapter helps to show the List of subscribed Events. More...

Inheritance diagram for unicopa.copa.app.gui.EventAdapter:
Inheritance graph
Collaboration diagram for unicopa.copa.app.gui.EventAdapter:
Collaboration graph

Classes

class  ViewHolder
 Helps to show the events in the EventAdapter.
 

Public Member Functions

 EventAdapter (Context context, ArrayList< Event > eventList)
 Creates a EventAdapter with a EventList that should be shown. More...
 
int getCount ()
 
Object getItem (int arg0)
 
long getItemId (int arg0)
 
View getView (int position, View convertView, ViewGroup parent)
 Creates the ListView with Events in user defined colors (black as default). More...
 

Detailed Description

This Adapter helps to show the List of subscribed Events.

Author
Christiane Kuhn, Martin Rabe

Constructor & Destructor Documentation

unicopa.copa.app.gui.EventAdapter.EventAdapter ( Context  context,
ArrayList< Event eventList 
)

Creates a EventAdapter with a EventList that should be shown.

Parameters
context
eventList

Member Function Documentation

View unicopa.copa.app.gui.EventAdapter.getView ( int  position,
View  convertView,
ViewGroup  parent 
)

Creates the ListView with Events in user defined colors (black as default).

In the ListView the EventGroupName, the EventName and three buttons are shown. It also handles the clicks on the buttons. If the "color"-button is clicked a colorDialog opens. If the "unsubscribe"-button is clicked a message to the server is send that unsubscribes the user.The user will also be informed by a dialog. If the "details"-button is clicked the SingleEventListActivity with all SingleEvents, that belong to the currently watched event, is shown.


The documentation for this class was generated from the following file: