public class CalendarAdapter extends Object implements ICalendarListener
ICalendarListener| Constructor and Description |
|---|
CalendarAdapter() |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
getEventDropPrecondition()
Gets the javascript statement which will be executed before
ICalendarListener.onEventDrop(AjaxRequestTarget, int, long, boolean) event is triggeredA common use case is to call the revertFunc callback to cancel the event. |
CharSequence |
getEventResizePrecondition()
Gets the javascript statement which will be executed before
ICalendarListener.onEventResize(AjaxRequestTarget, int, long) event is triggeredA common use case is to call the revertFunc callback to cancel the event. |
boolean |
isDayClickEnabled()
Indicates whether a day can be clicked.
If true, the ICalendarListener.onDayClick(AjaxRequestTarget, CalendarView, LocalDateTime, boolean) event will be triggeredNote: true will enable the global 'editable' option to true. |
boolean |
isEventClickEnabled()
Indicates whether an event can be clicked.
If true, the ICalendarListener.onEventClick(AjaxRequestTarget, CalendarView, int) event will be triggeredNote: true will enable the global 'editable' option to true. |
boolean |
isEventDropEnabled()
Indicates whether the event can be dragged & dropped.
|
boolean |
isEventResizeEnabled()
Indicates whether the event can be resized.
|
boolean |
isObjectDropEnabled()
Indicates whether the
ICalendarListener.onObjectDrop(AjaxRequestTarget, String, LocalDateTime, boolean) event will be triggered |
boolean |
isSelectable()
Indicates whether a cell can be selected.
If true, the ICalendarListener.onSelect(AjaxRequestTarget, CalendarView, LocalDateTime, LocalDateTime, boolean) event will be triggered |
boolean |
isViewRenderEnabled()
Indicates whether the
ICalendarListener.onViewRender(AjaxRequestTarget, CalendarView, LocalDateTime, LocalDateTime) event will be triggered |
void |
onDayClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
LocalDateTime date,
boolean allDay)
Triggered when a calendar day is clicked
ICalendarListener.isDayClickEnabled() should return true for this event to be triggered. |
void |
onEventClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
int eventId)
Triggered when an event is clicked.
ICalendarListener.isEventClickEnabled() should return true for this event to be triggered. |
void |
onEventDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta,
boolean allDay)
Triggered when an event is dropped (after being dragged).
ICalendarListener.isEventDropEnabled() should return true for this event to be triggered. |
void |
onEventResize(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta)
Triggered when an event is dropped (after being dragged).
ICalendarListener.isEventResizeEnabled() should return true for this event to be triggered. |
void |
onObjectDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
String title,
LocalDateTime date,
boolean allDay)
Triggered when an event-object is dropped.
ICalendarListener.isObjectDropEnabled() should return true for this event to be triggered. |
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
LocalDateTime start,
LocalDateTime end,
boolean allDay)
Triggered when an cell is selected.
ICalendarListener.isSelectable() should return true for this event to be triggered. |
void |
onViewRender(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
LocalDateTime start,
LocalDateTime end)
Triggered when the calendar loads and every time a different date-range is displayed.
ICalendarListener.isViewRenderEnabled() should return true for this event to be triggered. |
public boolean isSelectable()
ICalendarListenerICalendarListener.onSelect(AjaxRequestTarget, CalendarView, LocalDateTime, LocalDateTime, boolean) event will be triggeredisSelectable in interface ICalendarListenerpublic boolean isDayClickEnabled()
ICalendarListenerICalendarListener.onDayClick(AjaxRequestTarget, CalendarView, LocalDateTime, boolean) event will be triggeredtrue will enable the global 'editable' option to true.isDayClickEnabled in interface ICalendarListenerCalendarEvent.setEditable(Boolean)public boolean isEventClickEnabled()
ICalendarListenerICalendarListener.onEventClick(AjaxRequestTarget, CalendarView, int) event will be triggeredtrue will enable the global 'editable' option to true.isEventClickEnabled in interface ICalendarListenerCalendarEvent.setEditable(Boolean)public boolean isObjectDropEnabled()
ICalendarListenerICalendarListener.onObjectDrop(AjaxRequestTarget, String, LocalDateTime, boolean) event will be triggeredisObjectDropEnabled in interface ICalendarListenerpublic boolean isEventDropEnabled()
ICalendarListenerICalendarListener.onEventDrop(AjaxRequestTarget, int, long, boolean) event will be triggeredisEventDropEnabled in interface ICalendarListenerpublic boolean isEventResizeEnabled()
ICalendarListenerICalendarListener.onEventResize(AjaxRequestTarget, int, long) event will be triggeredisEventResizeEnabled in interface ICalendarListenerpublic boolean isViewRenderEnabled()
ICalendarListenerICalendarListener.onViewRender(AjaxRequestTarget, CalendarView, LocalDateTime, LocalDateTime) event will be triggeredisViewRenderEnabled in interface ICalendarListenerpublic CharSequence getEventDropPrecondition()
ICalendarListenerICalendarListener.onEventDrop(AjaxRequestTarget, int, long, boolean) event is triggeredrevertFunc callback to cancel the event.getEventDropPrecondition in interface ICalendarListenerpublic CharSequence getEventResizePrecondition()
ICalendarListenerICalendarListener.onEventResize(AjaxRequestTarget, int, long) event is triggeredrevertFunc callback to cancel the event.getEventResizePrecondition in interface ICalendarListenerpublic void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
LocalDateTime start,
LocalDateTime end,
boolean allDay)
ICalendarListenerICalendarListener.isSelectable() should return true for this event to be triggered.onSelect in interface ICalendarListenertarget - the AjaxRequestTargetview - the current calendar viewstart - the event start LocalDateTimeend - the event end LocalDateTimeallDay - the event all-day propertypublic void onDayClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
LocalDateTime date,
boolean allDay)
ICalendarListenerICalendarListener.isDayClickEnabled() should return true for this event to be triggered.onDayClick in interface ICalendarListenertarget - the AjaxRequestTargetview - the current calendar viewdate - the dayallDay - the event all-day propertypublic void onEventClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
int eventId)
ICalendarListenerICalendarListener.isEventClickEnabled() should return true for this event to be triggered.onEventClick in interface ICalendarListenertarget - the AjaxRequestTargetview - the current calendar vieweventId - the CalendarEvent idpublic void onEventDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta,
boolean allDay)
ICalendarListenerICalendarListener.isEventDropEnabled() should return true for this event to be triggered.onEventDrop in interface ICalendarListenertarget - the AjaxRequestTargeteventId - the CalendarEvent iddelta - the delta (time) with the original event dateallDay - the event all-day propertypublic void onEventResize(org.apache.wicket.ajax.AjaxRequestTarget target,
int eventId,
long delta)
ICalendarListenerICalendarListener.isEventResizeEnabled() should return true for this event to be triggered.onEventResize in interface ICalendarListenertarget - the AjaxRequestTargeteventId - the CalendarEvent iddelta - the delta (time) with the original event datepublic void onObjectDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
String title,
LocalDateTime date,
boolean allDay)
ICalendarListenerICalendarListener.isObjectDropEnabled() should return true for this event to be triggered.onObjectDrop in interface ICalendarListenertarget - the AjaxRequestTargettitle - the titledate - the dayallDay - the event all-day propertypublic void onViewRender(org.apache.wicket.ajax.AjaxRequestTarget target,
CalendarView view,
LocalDateTime start,
LocalDateTime end)
ICalendarListenerICalendarListener.isViewRenderEnabled() should return true for this event to be triggered.onViewRender in interface ICalendarListenertarget - the AjaxRequestTargetview - the current calendar viewstart - the start LocalDateTime of the current viewend - the event end LocalDateTime of the current viewCopyright © 2016 7thWeb. All rights reserved.