public abstract class EventsManager extends Object
Modifier and Type | Class and Description |
---|---|
class |
EventsManager.EventInfo |
class |
EventsManager.EventsListView |
Modifier and Type | Method and Description |
---|---|
void |
closeEvents()
Hides the currently shown events.
|
boolean |
eventsForCellVisible(CalendarDayCell cell)
Returns a boolean value determining whether events are displayed for the provided
CalendarDayCell . |
boolean |
eventsForDateVisible(long date)
Returns a boolean value determining whether events are displayed for the provided
date.
|
ArrayAdapter<EventsManager.EventInfo> |
getAdapter() |
void |
setAdapter(ArrayAdapter<EventsManager.EventInfo> adapter) |
void |
setOnEventsListTouchListener(View.OnTouchListener listener)
Provides a
AdapterView.OnTouchListener implementation that listens for touch events
on a AdapterView instance. |
void |
setOnItemClickListener(AdapterView.OnItemClickListener listener)
Provides a
AdapterView.OnItemClickListener implementation that listens for touch events
on a AdapterView instance. |
void |
setOnItemLongClickListener(AdapterView.OnItemLongClickListener listener)
Provides a
AdapterView.OnItemLongClickListener implementation that listens for touch events
on a AdapterView instance. |
void |
toggleEventsVisibilityForCell(CalendarDayCell cell)
Displays the events for the provided calendar cell.
|
void |
toggleEventsVisibilityForDate(long date)
Displays or hides the events for the provided date.
|
public void setAdapter(ArrayAdapter<EventsManager.EventInfo> adapter)
public ArrayAdapter<EventsManager.EventInfo> getAdapter()
public void setOnItemClickListener(AdapterView.OnItemClickListener listener)
AdapterView.OnItemClickListener
implementation that listens for touch events
on a AdapterView
instance. In this particular case, the AdapterView
used to
visualize the inline events will receive the listener.listener
- the AdapterView.OnItemClickListener
implementation to pass to the
current inline events AdapterView
.public void setOnItemLongClickListener(AdapterView.OnItemLongClickListener listener)
AdapterView.OnItemLongClickListener
implementation that listens for touch events
on a AdapterView
instance. In this particular case, the AdapterView
used to
visualize the inline events will receive the listener.listener
- the AdapterView.OnItemLongClickListener
implementation to pass to the
current inline events AdapterView
.public void setOnEventsListTouchListener(View.OnTouchListener listener)
AdapterView.OnTouchListener
implementation that listens for touch events
on a AdapterView
instance. In this particular case, the AdapterView
used to
visualize the inline events will receive the listener.listener
- the AdapterView.OnTouchListener
implementation to pass to the
current inline events AdapterView
.public boolean eventsForDateVisible(long date)
date
- the date, represented in milliseconds, to check the events visibility for.true
if events are visible, otherwise false
.public void toggleEventsVisibilityForDate(long date)
date
- the date represented as a Long
value for which to display/hide the events for.public boolean eventsForCellVisible(CalendarDayCell cell)
CalendarDayCell
.cell
- the cell to check the events visibility for.true
if events are visible, otherwise false
.public void toggleEventsVisibilityForCell(CalendarDayCell cell)
cell
- the CalendarDayCell
for which to display/hide the events for.public void closeEvents()