Class ScheduleXCalendar
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.Div
org.vaadin.addons.componentfactory.schedulexcalendar.BaseScheduleXCalendar
org.vaadin.addons.componentfactory.schedulexcalendar.ScheduleXCalendar
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasText,Serializable
@NpmPackage(value="@sx-premium/draw",
version="13.2.1")
@JsModule("./src/vcf-schedule-x-calendar.js")
public class ScheduleXCalendar
extends BaseScheduleXCalendar
Vaadin Wrapper Add-on for Schedule-X Calendar.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfaceCallback interface for validating drawn events.Nested classes/interfaces inherited from class org.vaadin.addons.componentfactory.schedulexcalendar.BaseScheduleXCalendar
BaseScheduleXCalendar.CalendarEventAddedEvent, BaseScheduleXCalendar.CalendarEventClickEvent, BaseScheduleXCalendar.CalendarEventRemovedEvent, BaseScheduleXCalendar.CalendarEventUpdatedEvent, BaseScheduleXCalendar.CalendarViewAndDateChangeEvent, BaseScheduleXCalendar.EventUpdateEvent, BaseScheduleXCalendar.SelectedDateUpdateEventNested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
com.vaadin.flow.component.HasText.WhiteSpace -
Field Summary
Fields inherited from class org.vaadin.addons.componentfactory.schedulexcalendar.BaseScheduleXCalendar
container -
Constructor Summary
ConstructorsConstructorDescriptionScheduleXCalendar(List<CalendarViewType> views, com.vaadin.flow.data.provider.CallbackDataProvider<Event, EventQueryFilter> dataProvider, Configuration configuration) ScheduleXCalendar(List<CalendarViewType> views, com.vaadin.flow.data.provider.CallbackDataProvider<Event, EventQueryFilter> dataProvider, Configuration configuration, Map<String, Calendar> calendars) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddCalendarEventDrawnEventListener(com.vaadin.flow.component.ComponentEventListener<ScheduleXCalendar.CalendarEventDrawnEvent> listener) protected Stringprotected voidinitCalendar(boolean refreshView) Initializes calendar with the initial configuration.voidScroll to an specific time.voidsetDrawnEventValidationCallback(ScheduleXCalendar.DrawnEventValidationCallback drawnEventValidationCallback) Sets the drawn event validation callback.Methods inherited from class org.vaadin.addons.componentfactory.schedulexcalendar.BaseScheduleXCalendar
addCalendarEventAddedEventListener, addCalendarEventClickEventListener, addCalendarEventRemovedEventListener, addCalendarEventUpdatedEventListener, addCalendarViewAndDateChangeEvent, addEvent, addEventUpdateEventListener, addSelectedDateUpdateEventListener, calendarsToJson, configurationToJson, eventsToJson, getCalendars, getConfiguration, getDataProvider, getDate, getDayBoundaries, getFirstDayOfWeek, getLocale, getMaxDate, getMinDate, getMonthGridOptions, getTimeZone, getView, getViews, getWeekOptions, navigateBackwards, navigateForwards, onAttach, onDetach, refreshCalendar, removeEvent, setCalendars, setDarkMode, setDataProvider, setDate, setDayBoundaries, setFirstDayOfWeek, setLocale, setMaxDate, setMinDate, setMonthGridOptions, setTimeZone, setView, setViews, setWeekOptions, updateDate, updateDayBoundaries, updateEvent, updateFirstDayOfWeek, updateLocale, updateMaxDate, updateMinDate, updateMonthGridOptions, updateTimeZone, updateWeekOptions, viewsToJsonMethods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replaceMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasText
getText, getWhiteSpace, setText, setWhiteSpace
-
Constructor Details
-
ScheduleXCalendar
public ScheduleXCalendar(List<CalendarViewType> views, com.vaadin.flow.data.provider.CallbackDataProvider<Event, EventQueryFilter> dataProvider, Configuration configuration) -
ScheduleXCalendar
public ScheduleXCalendar(List<CalendarViewType> views, com.vaadin.flow.data.provider.CallbackDataProvider<Event, EventQueryFilter> dataProvider, Configuration configuration, Map<String, Calendar> calendars)
-
-
Method Details
-
getJsConnector
- Specified by:
getJsConnectorin classBaseScheduleXCalendar
-
initCalendar
protected void initCalendar(boolean refreshView) Description copied from class:BaseScheduleXCalendarInitializes calendar with the initial configuration.- Specified by:
initCalendarin classBaseScheduleXCalendar
-
scrollTo
Scroll to an specific time. Only available for week and day views.- Parameters:
time- the time to scroll to in the view
-
setDrawnEventValidationCallback
public void setDrawnEventValidationCallback(ScheduleXCalendar.DrawnEventValidationCallback drawnEventValidationCallback) Sets the drawn event validation callback.- Parameters:
drawnEventValidationCallback-
-
addCalendarEventDrawnEventListener
public com.vaadin.flow.shared.Registration addCalendarEventDrawnEventListener(com.vaadin.flow.component.ComponentEventListener<ScheduleXCalendar.CalendarEventDrawnEvent> listener)
-