public abstract class ListViewBehavior extends KendoUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ListViewBehavior.ChangeEvent
Provides an event object that will be broadcasted by the
ListViewBehavior.OnChangeAjaxBehavior callback |
protected static class |
ListViewBehavior.OnChangeAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'select' event |
| Constructor and Description |
|---|
ListViewBehavior(String selector,
KendoDataSource dataSource,
IListViewListener listener)
Constructor
|
ListViewBehavior(String selector,
KendoDataSource dataSource,
IListViewListener listener,
com.googlecode.wicket.jquery.core.Options options)
Main Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
String |
getDataSourceName()
Gets the datasource name
|
protected abstract CharSequence |
getProviderUrl()
Gets the data-provider behavior's url
|
protected abstract long |
getRowCount()
Gets the row count
|
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnChangeAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String datasource)
Gets a new
JQueryAjaxBehavior that will be wired to the 'select' event |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnCreateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the datasource's 'create' event |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnDeleteAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the datasource's 'delete' event |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnUpdateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the datasource's 'update' event |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
protected void |
onConfigure(KendoDataSource dataSource)
Configure the
KendoDataSource with additional options |
protected boolean |
useCache()
Indicates whether the read function should use cache
|
add, destroy, onDestroy, renderHead, widget, widget, widget, widget$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringpublic static final String METHOD
public ListViewBehavior(String selector, KendoDataSource dataSource, IListViewListener listener)
selector - the html selector (ie: "#myId")listener - the IListViewListenerdataSource - the KendoDataSourcepublic ListViewBehavior(String selector, KendoDataSource dataSource, IListViewListener listener, com.googlecode.wicket.jquery.core.Options options)
selector - the html selector (ie: "#myId")listener - the IListViewListeneroptions - the OptionsdataSource - the KendoDataSourcepublic void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorprotected abstract long getRowCount()
protected abstract CharSequence getProviderUrl()
public String getDataSourceName()
protected boolean useCache()
public void onConfigure(org.apache.wicket.Component component)
onConfigure in class KendoUIBehaviorprotected void onConfigure(KendoDataSource dataSource)
KendoDataSource with additional optionsdataSource - the KendoDataSourcepublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event)
onAjax in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAwareprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnCreateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior that will be wired to the datasource's 'create' eventsource - the IJQueryAjaxAwareDataSourceAjaxBehavior by defaultprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnUpdateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior that will be wired to the datasource's 'update' eventsource - the IJQueryAjaxAwareDataSourceAjaxBehavior by defaultprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDeleteAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior that will be wired to the datasource's 'delete' eventsource - the IJQueryAjaxAwareDataSourceAjaxBehavior by defaultprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnChangeAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String datasource)
JQueryAjaxBehavior that will be wired to the 'select' eventsource - the IJQueryAjaxAwaredatasource - the datasource nameOnChangeAjaxBehavior by defaultCopyright © 2021 7thWeb. All rights reserved.