public class KendoUIBehavior extends com.googlecode.wicket.jquery.core.JQueryBehavior implements KendoDestroyListener.IDestroyable
| Constructor and Description |
|---|
KendoUIBehavior(String selector,
String method)
Constructor
|
KendoUIBehavior(String selector,
String method,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IKendoDataSource datasource)
Adds a data-source to be rendered at
renderHead(Component, IHeaderResponse) time. |
void |
destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Prepares the widget for safe removal from the DOM.
Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks. Calls destroy method of any child Kendo widgets. This method is automatically called on ajax request. |
void |
onConfigure(org.apache.wicket.Component component) |
protected void |
onDestroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Called when the widget is about to be destroyed
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
String |
widget()
Gets the Kendo UI widget
|
static String |
widget(org.apache.wicket.Component component,
String method)
Gets the Kendo UI widget
|
protected String |
widget(String method)
Gets the Kendo UI widget
|
static String |
widget(String selector,
String method)
Gets the Kendo UI widget
|
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringpublic KendoUIBehavior(String selector, String method)
selector - the html selector (ie: "#myId")method - the kendo-ui methodpublic boolean add(IKendoDataSource datasource)
renderHead(Component, IHeaderResponse) time.datasource - the IKendoDataSourcetrue (as specified by Collection.add(E))public void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class com.googlecode.wicket.jquery.core.JQueryBehaviorpublic String widget()
protected String widget(String method)
method - the Kendo UI methodpublic static String widget(String selector, String method)
selector - the widget selectormethod - the Kendo UI methodpublic static String widget(org.apache.wicket.Component component, String method)
component - the Componentmethod - the Kendo UI methodpublic void destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
KendoDestroyListener.IDestroyabledestroy in interface KendoDestroyListener.IDestroyablehandler - the IPartialPageRequestHandlerpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class com.googlecode.wicket.jquery.core.JQueryBehaviorprotected void onDestroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
handler - the IPartialPageRequestHandlerdestroy(IPartialPageRequestHandler)Copyright © 2021 7thWeb. All rights reserved.