public class Scheduler extends com.googlecode.wicket.jquery.core.JQueryContainer implements ISchedulerListener
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Scheduler.GroupOrientation
Provides an enum of available group orientation
|
| Modifier and Type | Field and Description |
|---|---|
protected com.googlecode.wicket.jquery.core.Options |
options |
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
Scheduler(String id)
Constructor
|
Scheduler(String id,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Scheduler(String id,
SchedulerModel model)
Constructor
|
Scheduler(String id,
SchedulerModel model,
com.googlecode.wicket.jquery.core.Options options)
Main constructor
|
Scheduler(String id,
SchedulerModel model,
ResourceList resourceList)
Constructor
|
Scheduler(String id,
SchedulerModel model,
ResourceListModel resourceListModel)
Constructor
|
Scheduler(String id,
SchedulerModel model,
ResourceListModel resourceListModel,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Scheduler(String id,
SchedulerModel model,
ResourceList resourceList,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ResourceList resourceList)
Adds a
ResourceList to the internal ResourceListModel |
protected SchedulerEvent |
eventOf(org.apache.wicket.ajax.json.JSONObject object)
Utility method that converts a
JSONObject event to a SchedulerEvent |
protected CharSequence |
getCallbackUrl()
Gets the
SchedulerModelBehavior callback url |
protected ISchedulerConverter |
getConverter()
Gets the
ISchedulerConverter |
String |
getEditTemplateToken()
Gets the edit-template script token/id
|
String |
getEventTemplateToken()
Gets the event-template script token/id
|
protected Scheduler.GroupOrientation |
getGroupOrientation()
Gets the orientation of the group headers
|
SchedulerModel |
getModel()
Gets the sheduler's model
|
ResourceListModel |
getResourceListModel()
Gets the sheduler's
ResourceListModel |
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. |
protected boolean |
isGroupedByDate()
Indicates whether the resources are grouped by date.
|
protected ISchedulerConverter |
newConverter()
Gets a new
ISchedulerConverter |
protected com.googlecode.wicket.jquery.core.template.IJQueryTemplate |
newEditTemplate()
Gets a new
IJQueryTemplate to customize the built-in edit window |
protected com.googlecode.wicket.jquery.core.template.IJQueryTemplate |
newEventTemplate()
Gets a new
IJQueryTemplate to customize the event rendering |
protected SchedulerModelBehavior |
newSchedulerModelBehavior(SchedulerModel model,
ISchedulerConverter converter)
Gets a new
SchedulerModelBehavior |
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector)
see
IJQueryWidget.newWidgetBehavior(String) |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onConfigure(SchedulerDataSource dataSource)
Configure the
SchedulerDataSource with additional options |
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 |
onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event)
Triggered when a
SchedulerEvent is created. |
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 |
onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event)
Triggered when a
SchedulerEvent is deleted |
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 |
onEdit(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event,
SchedulerViewType view)
Triggered when a
SchedulerEvent is edited. |
protected void |
onInitialize() |
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
|
protected void |
onRefresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Triggered when
refresh(IPartialPageRequestHandler) has been called |
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
|
void |
onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event)
Triggered when a
SchedulerEvent is updated |
void |
refresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Refreshes the events currently available in the selected view.
|
String |
widget()
Gets the Kendo UI widget
|
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Scheduler(String id)
id - the markup idpublic Scheduler(String id, com.googlecode.wicket.jquery.core.Options options)
id - the markup idoptions - the Optionspublic Scheduler(String id, SchedulerModel model)
id - the markup idmodel - the SchedulerModelpublic Scheduler(String id, SchedulerModel model, com.googlecode.wicket.jquery.core.Options options)
id - the markup idmodel - the SchedulerModeloptions - the Optionspublic Scheduler(String id, SchedulerModel model, ResourceList resourceList)
id - the markup idmodel - the SchedulerModelresourceList - a ResourceListpublic Scheduler(String id, SchedulerModel model, ResourceList resourceList, com.googlecode.wicket.jquery.core.Options options)
id - the markup idmodel - the SchedulerModelresourceList - a ResourceListoptions - the Optionspublic Scheduler(String id, SchedulerModel model, ResourceListModel resourceListModel)
id - the markup idmodel - the SchedulerModelresourceListModel - the ResourceListModelpublic Scheduler(String id, SchedulerModel model, ResourceListModel resourceListModel, com.googlecode.wicket.jquery.core.Options options)
id - the markup idmodel - the SchedulerModelresourceListModel - the ResourceListModeloptions - the Optionspublic void add(ResourceList resourceList)
ResourceList to the internal ResourceListModelresourceList - the ResourceListgetResourceListModel()public String widget()
public void refresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerprotected SchedulerEvent eventOf(org.apache.wicket.ajax.json.JSONObject object)
JSONObject event to a SchedulerEventobject - the JSONObjectSchedulerEventpublic 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 SchedulerModel getModel()
SchedulerModelprotected CharSequence getCallbackUrl()
SchedulerModelBehavior callback urlSchedulerModelBehavior callback urlpublic String getEditTemplateToken()
public String getEventTemplateToken()
protected final ISchedulerConverter getConverter()
ISchedulerConverterISchedulerConverterpublic ResourceListModel getResourceListModel()
ResourceListModelResourceListModelprotected Scheduler.GroupOrientation getGroupOrientation()
Scheduler.GroupOrientation.horizontal by defaultprotected boolean isGroupedByDate()
false by defaultprotected void onInitialize()
onInitialize in class com.googlecode.wicket.jquery.core.JQueryContainerpublic void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidgetonConfigure in class com.googlecode.wicket.jquery.core.JQueryContainerprotected void onConfigure(SchedulerDataSource dataSource)
SchedulerDataSource with additional optionsdataSource - the SchedulerDataSourceprotected void onRefresh(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
refresh(IPartialPageRequestHandler) has been calledhandler - the IPartialPageRequestHandlerpublic final 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 onEdit(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event,
SchedulerViewType view)
SchedulerEvent is edited.target - the AjaxRequestTargetevent - the SchedulerEventview - the SchedulerViewTypepublic 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)
onCreate in interface ISchedulerListenertarget - the AjaxRequestTargetobject - the JSONObject eventpublic void onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event)
SchedulerEvent is created.target - the AjaxRequestTargetevent - the SchedulerEventpublic void onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
onUpdate in interface ISchedulerListenertarget - the AjaxRequestTargetobject - the JSONObject eventpublic void onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event)
SchedulerEvent is updatedtarget - the AjaxRequestTargetevent - the SchedulerEventpublic void onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
onDelete in interface ISchedulerListenertarget - the AjaxRequestTargetobject - the JSONObject eventpublic void onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
SchedulerEvent event)
SchedulerEvent is deletedtarget - the AjaxRequestTargetevent - the SchedulerEventpublic com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior(String selector)
IJQueryWidget.newWidgetBehavior(String)newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected ISchedulerConverter newConverter()
ISchedulerConverterSchedulerConverter by defaultprotected com.googlecode.wicket.jquery.core.template.IJQueryTemplate newEditTemplate()
IJQueryTemplate to customize the built-in edit windowprotected com.googlecode.wicket.jquery.core.template.IJQueryTemplate newEventTemplate()
IJQueryTemplate to customize the event renderingprotected SchedulerModelBehavior newSchedulerModelBehavior(SchedulerModel model, ISchedulerConverter converter)
SchedulerModelBehaviormodel - the SchedulerModelconverter - the SchedulerEventFactorySchedulerModelBehaviorCopyright © 2021 7thWeb. All rights reserved.