public abstract class DataTableBehavior extends KendoUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DataTableBehavior.CancelEvent |
| Constructor and Description |
|---|
DataTableBehavior(String selector,
org.apache.wicket.model.IModel<List<IColumn>> columns,
IDataTableListener listener)
Constructor
|
DataTableBehavior(String selector,
com.googlecode.wicket.jquery.core.Options options,
org.apache.wicket.model.IModel<List<IColumn>> columns,
IDataTableListener listener)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
protected List<CommandButton> |
getCommandButtons()
Gets the
List of CommandButton |
protected abstract CharSequence |
getProviderUrl()
Gets the data-provider behavior's url
|
protected abstract long |
getRowCount()
Gets the row count
|
protected List<ToolbarButton> |
getToolbarButtons()
|
protected List<CommandButton> |
getVisibleCommandButtons()
|
protected List<ToolbarButton> |
getVisibleToolbarButtons()
|
protected boolean |
hasVisibleToolbarButtons()
Indicates whether toolbar buttons are supplied.
Note: if false, the toolbar option can be used (for built-in buttons only) |
protected abstract com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newCommandAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
CommandButton button)
Gets a new
JQueryAjaxBehavior that will be called by a table's button. |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnCancelAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'update' 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 |
protected com.googlecode.wicket.jquery.core.Options |
newSchemaModelOptions(List<IColumn> columns)
Get the JSON model of the datasource's schema
|
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newToolbarAjaxBehavior(DataTableBehavior source,
ToolbarButton button)
Gets the
JQueryAjaxBehavior that will be called when the user clicks a toolbar button |
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 DataTableBehavior(String selector, org.apache.wicket.model.IModel<List<IColumn>> columns, IDataTableListener listener)
selector - the html selector (ie: "#myId")columns - the list of IColumnlistener - the IDataTableListenerpublic DataTableBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, org.apache.wicket.model.IModel<List<IColumn>> columns, IDataTableListener listener)
selector - the html selector (ie: "#myId")options - the Optionscolumns - the list of IColumnlistener - the IDataTableListenerpublic void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorprotected abstract long getRowCount()
protected abstract CharSequence getProviderUrl()
protected boolean useCache()
protected List<ToolbarButton> getToolbarButtons()
List of ToolbarButtonsprotected List<ToolbarButton> getVisibleToolbarButtons()
List of visible ToolbarButtonsprotected boolean hasVisibleToolbarButtons()
toolbar option can be used (for built-in buttons only)true or falseprotected List<CommandButton> getCommandButtons()
List of CommandButtonList of CommandButtonprotected List<CommandButton> getVisibleCommandButtons()
List of visible CommandButtonspublic 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.Options newSchemaModelOptions(List<IColumn> columns)
columns - the List of IColumnsprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnCancelAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior that will be wired to the 'update' eventsource - the IJQueryAjaxAwareJQueryAjaxBehavior by defaultprotected 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 newToolbarAjaxBehavior(DataTableBehavior source, ToolbarButton button)
JQueryAjaxBehavior that will be called when the user clicks a toolbar buttonsource - the IJQueryAjaxAwarebutton - the button that is passed to the behavior so it can be retrieved via the ToolbarAjaxBehavior.ToolbarClickEventJQueryAjaxBehaviorprotected abstract com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newCommandAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
CommandButton button)
JQueryAjaxBehavior that will be called by a table's button. This method may be overridden to provide additional behaviorssource - the IJQueryAjaxAwarebutton - the button that is passed to the behavior so it can be retrieved via the CommandAjaxBehavior.CommandClickEventJQueryAjaxBehaviorCopyright © 2017 7thWeb. All rights reserved.