This Adapter helps to show the List of Events to which a user has special rights. More...
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... | |
This Adapter helps to show the List of Events to which a user has special rights.
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.
context | |
eventList |
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.