public class SchedulerAdapter extends Object implements ISchedulerListener
ISchedulerListener| Constructor and Description |
|---|
SchedulerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEditEnabled()
Indicates whether a edit-event is enabled.
If true, the ISchedulerListener.onEdit(AjaxRequestTarget, JSONObject, SchedulerViewType) event will be triggered by clicking an event or a free event slot. |
void |
onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
Triggered when an event is created through the Scheduler's dialog
|
void |
onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
Triggered when an event is deleted, either through the Scheduler's dialog or the x-icon
|
void |
onEdit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object,
SchedulerViewType view)
Triggered when an event should be edited.
This occurs on clicking an event or clicking a free slot, as well. |
void |
onNavigate(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerViewType oldView,
SchedulerViewType newView)
Triggered when the user changes the selected date, or view of the scheduler
|
void |
onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
Triggered when an event is updated through the Scheduler dialog or by drag & drop
|
public boolean isEditEnabled()
ISchedulerListenerISchedulerListener.onEdit(AjaxRequestTarget, JSONObject, SchedulerViewType) event will be triggered by clicking an event or a free event slot.
This can be useful to implement a custom dialog. If false the internal event handling will proceed and opens the Scheduler's dialog (see ISchedulerListener.onUpdate(AjaxRequestTarget, JSONObject) to process the dialog results).
Note: true will prevent the internal event handling (by using e.preventDefault()) to avoid conflicts with Scheduler's dialog.
isEditEnabled in interface ISchedulerListenerpublic void onEdit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object,
SchedulerViewType view)
ISchedulerListenerSchedulerEvent.isNew(SchedulerEvent) to determine the use-case.onEdit in interface ISchedulerListenertarget - the AjaxRequestTargetobject - the JSONObject eventview - the SchedulerViewTypeSchedulerEvent.isNew(SchedulerEvent)public void onNavigate(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerViewType oldView,
SchedulerViewType newView)
ISchedulerListeneronNavigate in interface ISchedulerListenertarget - the AjaxRequestTargetoldView - the old/previous SchedulerViewTypenewView - the new/next SchedulerViewTypepublic void onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
ISchedulerListeneronCreate in interface ISchedulerListenertarget - the AjaxRequestTargetobject - the JSONObject eventpublic void onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
ISchedulerListeneronUpdate in interface ISchedulerListenertarget - the AjaxRequestTargetobject - the JSONObject eventpublic void onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
ISchedulerListeneronDelete in interface ISchedulerListenertarget - the AjaxRequestTargetobject - the JSONObject eventCopyright © 2021 7thWeb. All rights reserved.