public interface ISchedulerListener
extends org.apache.wicket.util.io.IClusterable
Scheduler widget and the SchedulerBehavior| Modifier and Type | Method and Description |
|---|---|
boolean |
isEditEnabled()
Indicates whether a edit-event is enabled.
If true, the 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
|
boolean isEditEnabled()
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 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.
void onEdit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object,
SchedulerViewType view)
SchedulerEvent.isNew(SchedulerEvent) to determine the use-case.target - the AjaxRequestTargetobject - the JSONObject eventview - the SchedulerViewTypeSchedulerEvent.isNew(SchedulerEvent)void onNavigate(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerViewType oldView,
SchedulerViewType newView)
target - the AjaxRequestTargetoldView - the old/previous SchedulerViewTypenewView - the new/next SchedulerViewTypevoid onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
target - the AjaxRequestTargetobject - the JSONObject eventvoid onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
target - the AjaxRequestTargetobject - the JSONObject eventvoid onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
target - the AjaxRequestTargetobject - the JSONObject eventCopyright © 2021 7thWeb. All rights reserved.