public class ReservationViewHolder extends AbstractViewHolder
Constructor and Description |
---|
ReservationViewHolder(android.view.View itemView,
android.content.Context context,
int layout)
The view holder's constructor.
|
Modifier and Type | Method and Description |
---|---|
android.widget.Button |
getConfirmReservationButton() |
android.widget.Button |
getDeclineReservationButton() |
android.widget.Button |
getRemoveParticipationButton() |
void |
setGlobetrotter(java.lang.String username)
Show the globetrotter's username.
|
void |
setItineraryTitle(java.lang.String title)
Show the itinerary's title.
|
void |
setNumberOfAdults(int numberOfAdults)
Show the number of adults.
|
void |
setNumberOfChildren(int numberOfChildren)
Show the number of children.
|
void |
setRequestedDate(java.util.Date date)
Show the reservation's requested date.
|
formatDate, getContext, setOnClickListener
public ReservationViewHolder(@NonNull android.view.View itemView, @NonNull android.content.Context context, int layout)
itemView
- The view holder's view.context
- The view holder's context.AbstractViewHolder.AbstractViewHolder(View, Context)
public void setGlobetrotter(java.lang.String username)
username
- The username.public void setItineraryTitle(java.lang.String title)
title
- The itinerary's title.public void setRequestedDate(java.util.Date date)
date
- The requested date.public void setNumberOfAdults(int numberOfAdults)
numberOfAdults
- The number of adults.public void setNumberOfChildren(int numberOfChildren)
numberOfChildren
- The number of children.public android.widget.Button getConfirmReservationButton()
public android.widget.Button getDeclineReservationButton()
public android.widget.Button getRemoveParticipationButton()