Package io.jmix.ui.component.calendar
Class ContainerCalendarEventProvider<E>
java.lang.Object
io.jmix.ui.component.calendar.ContainerCalendarEventProvider<E>
- All Implemented Interfaces:
CalendarEventProvider
,EntityCalendarEventProvider
public class ContainerCalendarEventProvider<E>
extends Object
implements CalendarEventProvider, EntityCalendarEventProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.calendar.CalendarEventProvider
CalendarEventProvider.EventSetChangeEvent, CalendarEventProvider.EventSetChangeListener
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected Subscription
protected CollectionContainer<E>
protected String
protected String
protected EventHub
protected List<CalendarEvent>
protected Subscription
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvent
(CalendarEvent event) AddsCalendarEvent
to the event provider list.protected void
protected void
void
Removes allCalendarEvent
in the event provider list.void
removeEvent
(CalendarEvent event) RemovesCalendarEvent
from the event provider list.void
void
setAllDayProperty
(String allDayProperty) Sets the name of the property that represents whether event is an all-day event.void
setCaptionProperty
(String captionProperty) Sets the name of the property that represents caption of event.void
setDescriptionProperty
(String descriptionProperty) Sets the name of the property that represents description of event.void
setEndDateProperty
(String endDateProperty) Sets the name of the property that represents end date of event.void
setStartDateProperty
(String startDateProperty) Sets the name of the property that represents start date of event.void
setStyleNameProperty
(String styleNameProperty) Sets the name of the property that represents style name of event.void
unbind()
-
Field Details
-
itemsCache
-
container
-
startDateProperty
-
endDateProperty
-
descriptionProperty
-
styleNameProperty
-
allDayProperty
-
events
-
collectionChangeListener
-
propertyChangeListener
-
-
Constructor Details
-
ContainerCalendarEventProvider
-
-
Method Details
-
onCollectionChanged
-
onItemPropertyChanged
-
getContainer
-
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:
event
- 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:
event
- 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
-
getEvents
- Specified by:
getEvents
in interfaceCalendarEventProvider
-
setStartDateProperty
Description copied from interface:EntityCalendarEventProvider
Sets the name of the property that represents start date of event.- Specified by:
setStartDateProperty
in interfaceEntityCalendarEventProvider
- Parameters:
startDateProperty
- the name of the property that represents start date of event
-
getStartDateProperty
- Specified by:
getStartDateProperty
in interfaceEntityCalendarEventProvider
- Returns:
- the name of the property that represents start date of event
-
setEndDateProperty
Description copied from interface:EntityCalendarEventProvider
Sets the name of the property that represents end date of event.- Specified by:
setEndDateProperty
in interfaceEntityCalendarEventProvider
- Parameters:
endDateProperty
- the name of the property that represents end date of event
-
getEndDateProperty
- Specified by:
getEndDateProperty
in interfaceEntityCalendarEventProvider
- Returns:
- the name of the property that represents end date of event
-
setCaptionProperty
Description copied from interface:EntityCalendarEventProvider
Sets the name of the property that represents caption of event.- Specified by:
setCaptionProperty
in interfaceEntityCalendarEventProvider
- Parameters:
captionProperty
- the name of the property that represents caption of event
-
getCaptionProperty
- Specified by:
getCaptionProperty
in interfaceEntityCalendarEventProvider
- Returns:
- the name of the property that represents caption of event
-
setDescriptionProperty
Description copied from interface:EntityCalendarEventProvider
Sets the name of the property that represents description of event.- Specified by:
setDescriptionProperty
in interfaceEntityCalendarEventProvider
- Parameters:
descriptionProperty
- the name of the property that represents description of event
-
getDescriptionProperty
- Specified by:
getDescriptionProperty
in interfaceEntityCalendarEventProvider
- Returns:
- the name of the property that represents description of event
-
setStyleNameProperty
Description copied from interface:EntityCalendarEventProvider
Sets the name of the property that represents style name of event.- Specified by:
setStyleNameProperty
in interfaceEntityCalendarEventProvider
- Parameters:
styleNameProperty
- the name of the property that represents style name of event
-
getStyleNameProperty
- Specified by:
getStyleNameProperty
in interfaceEntityCalendarEventProvider
- Returns:
- the name of the property that represents style name of event
-
setAllDayProperty
Description copied from interface:EntityCalendarEventProvider
Sets the name of the property that represents whether event is an all-day event.- Specified by:
setAllDayProperty
in interfaceEntityCalendarEventProvider
- Parameters:
allDayProperty
-true
if this event is an all-day event,false
otherwise
-
getIsAllDayProperty
- Specified by:
getIsAllDayProperty
in interfaceEntityCalendarEventProvider
- Returns:
true
if this event is an all-day event,false
otherwise
-
unbind
public void unbind()- Specified by:
unbind
in interfaceEntityCalendarEventProvider
-