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

This Adapter helps to show the List of Events to which a user has special rights. More...

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

Classes

class  ViewHolder
 Helps to show the events in the PrivAdapter.
 

Public Member Functions

 PrivAdapter (Context context, ArrayList< Event > eventList)
 Creates a PrivAdapter with a list of events 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 Events to which a user has special rights.

Author
Christiane Kuhn

Constructor & Destructor Documentation

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

Creates a PrivAdapter with a list of events that should be shown.

Typically these events are those for which a user has rights to change depending SingleEvents.

Parameters
context
eventList

Member Function Documentation

View unicopa.copa.app.gui.PrivAdapter.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 two buttons are shown. It also handles the clicks on the buttons. If the "change"-button is clicked the SingleEventList opens and the user can chose a SingleEvent to update it. If the "others"-button is clicked the EventPricActivity is started and the user can see all rightholders, deputies and owners.


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