Package io.jmix.ui.component.calendar
Class ListCalendarEventProvider
java.lang.Object
io.jmix.ui.component.calendar.ListCalendarEventProvider
- All Implemented Interfaces:
CalendarEventProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.calendar.CalendarEventProvider
CalendarEventProvider.EventSetChangeEvent, CalendarEventProvider.EventSetChangeListener
-
Field Summary
Modifier and TypeFieldDescriptionprotected Consumer<CalendarEvent.EventChangeEvent>
protected List<CalendarEvent>
protected EventHub
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvent
(CalendarEvent calendarEvent) AddsCalendarEvent
to the event provider list.protected void
void
Removes allCalendarEvent
in the event provider list.void
removeEvent
(CalendarEvent calendarEvent) RemovesCalendarEvent
from the event provider list.void
-
Field Details
-
eventList
-
eventChangeListener
-
events
-
-
Constructor Details
-
ListCalendarEventProvider
public ListCalendarEventProvider()
-
-
Method Details
-
fireEventSetChange
protected void fireEventSetChange() -
getEvents
- Specified by:
getEvents
in interfaceCalendarEventProvider
-
addEvent
Description copied from interface:CalendarEventProvider
AddsCalendarEvent
to the event provider list.Not supported by
EntityCalendarEventProvider
, use datasource for changing data items.- Specified by:
addEvent
in interfaceCalendarEventProvider
- Parameters:
calendarEvent
- calendar event
-
removeEvent
Description copied from interface:CalendarEventProvider
RemovesCalendarEvent
from the event provider list.Not supported by
EntityCalendarEventProvider
, use datasource for changing data items.- Specified by:
removeEvent
in interfaceCalendarEventProvider
- Parameters:
calendarEvent
- calendar event
-
removeAllEvents
public void removeAllEvents()Description copied from interface:CalendarEventProvider
Removes allCalendarEvent
in the event provider list.Not supported by
EntityCalendarEventProvider
, use datasource for changing data items.- Specified by:
removeAllEvents
in interfaceCalendarEventProvider
-
addEventSetChangeListener
public Subscription addEventSetChangeListener(Consumer<CalendarEventProvider.EventSetChangeEvent> listener) - Specified by:
addEventSetChangeListener
in interfaceCalendarEventProvider
-
removeEventSetChangeListener
public void removeEventSetChangeListener(Consumer<CalendarEventProvider.EventSetChangeEvent> listener) - Specified by:
removeEventSetChangeListener
in interfaceCalendarEventProvider
- Parameters:
listener
- a listener to remove
-