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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Subscriptionprotected CollectionContainer<E>protected Stringprotected Stringprotected EventHubprotected List<CalendarEvent>protected Subscriptionprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(CalendarEvent event) AddsCalendarEventto the event provider list.protected voidprotected voidvoidRemoves allCalendarEventin the event provider list.voidremoveEvent(CalendarEvent event) RemovesCalendarEventfrom the event provider list.voidvoidsetAllDayProperty(String allDayProperty) Sets the name of the property that represents whether event is an all-day event.voidsetCaptionProperty(String captionProperty) Sets the name of the property that represents caption of event.voidsetDescriptionProperty(String descriptionProperty) Sets the name of the property that represents description of event.voidsetEndDateProperty(String endDateProperty) Sets the name of the property that represents end date of event.voidsetStartDateProperty(String startDateProperty) Sets the name of the property that represents start date of event.voidsetStyleNameProperty(String styleNameProperty) Sets the name of the property that represents style name of event.voidunbind()
-
Field Details
-
itemsCache
-
container
-
startDateProperty
-
endDateProperty
-
captionProperty
-
descriptionProperty
-
styleNameProperty
-
allDayProperty
-
events
-
collectionChangeListener
-
propertyChangeListener
-
-
Constructor Details
-
ContainerCalendarEventProvider
-
-
Method Details
-
onCollectionChanged
-
onItemPropertyChanged
-
getContainer
-
addEvent
Description copied from interface:CalendarEventProviderAddsCalendarEventto the event provider list.Not supported by
EntityCalendarEventProvider, use datasource for changing data items.- Specified by:
addEventin interfaceCalendarEventProvider- Parameters:
event- calendar event
-
removeEvent
Description copied from interface:CalendarEventProviderRemovesCalendarEventfrom the event provider list.Not supported by
EntityCalendarEventProvider, use datasource for changing data items.- Specified by:
removeEventin interfaceCalendarEventProvider- Parameters:
event- calendar event
-
removeAllEvents
public void removeAllEvents()Description copied from interface:CalendarEventProviderRemoves allCalendarEventin the event provider list.Not supported by
EntityCalendarEventProvider, use datasource for changing data items.- Specified by:
removeAllEventsin interfaceCalendarEventProvider
-
addEventSetChangeListener
public Subscription addEventSetChangeListener(Consumer<CalendarEventProvider.EventSetChangeEvent> listener) - Specified by:
addEventSetChangeListenerin interfaceCalendarEventProvider
-
removeEventSetChangeListener
public void removeEventSetChangeListener(Consumer<CalendarEventProvider.EventSetChangeEvent> listener) - Specified by:
removeEventSetChangeListenerin interfaceCalendarEventProvider- Parameters:
listener- a listener to remove
-
getEvents
- Specified by:
getEventsin interfaceCalendarEventProvider
-
setStartDateProperty
Description copied from interface:EntityCalendarEventProviderSets the name of the property that represents start date of event.- Specified by:
setStartDatePropertyin interfaceEntityCalendarEventProvider- Parameters:
startDateProperty- the name of the property that represents start date of event
-
getStartDateProperty
- Specified by:
getStartDatePropertyin interfaceEntityCalendarEventProvider- Returns:
- the name of the property that represents start date of event
-
setEndDateProperty
Description copied from interface:EntityCalendarEventProviderSets the name of the property that represents end date of event.- Specified by:
setEndDatePropertyin interfaceEntityCalendarEventProvider- Parameters:
endDateProperty- the name of the property that represents end date of event
-
getEndDateProperty
- Specified by:
getEndDatePropertyin interfaceEntityCalendarEventProvider- Returns:
- the name of the property that represents end date of event
-
setCaptionProperty
Description copied from interface:EntityCalendarEventProviderSets the name of the property that represents caption of event.- Specified by:
setCaptionPropertyin interfaceEntityCalendarEventProvider- Parameters:
captionProperty- the name of the property that represents caption of event
-
getCaptionProperty
- Specified by:
getCaptionPropertyin interfaceEntityCalendarEventProvider- Returns:
- the name of the property that represents caption of event
-
setDescriptionProperty
Description copied from interface:EntityCalendarEventProviderSets the name of the property that represents description of event.- Specified by:
setDescriptionPropertyin interfaceEntityCalendarEventProvider- Parameters:
descriptionProperty- the name of the property that represents description of event
-
getDescriptionProperty
- Specified by:
getDescriptionPropertyin interfaceEntityCalendarEventProvider- Returns:
- the name of the property that represents description of event
-
setStyleNameProperty
Description copied from interface:EntityCalendarEventProviderSets the name of the property that represents style name of event.- Specified by:
setStyleNamePropertyin interfaceEntityCalendarEventProvider- Parameters:
styleNameProperty- the name of the property that represents style name of event
-
getStyleNameProperty
- Specified by:
getStyleNamePropertyin interfaceEntityCalendarEventProvider- Returns:
- the name of the property that represents style name of event
-
setAllDayProperty
Description copied from interface:EntityCalendarEventProviderSets the name of the property that represents whether event is an all-day event.- Specified by:
setAllDayPropertyin interfaceEntityCalendarEventProvider- Parameters:
allDayProperty-trueif this event is an all-day event,falseotherwise
-
getIsAllDayProperty
- Specified by:
getIsAllDayPropertyin interfaceEntityCalendarEventProvider- Returns:
trueif this event is an all-day event,falseotherwise
-
unbind
public void unbind()- Specified by:
unbindin interfaceEntityCalendarEventProvider
-