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
Provides an event object that will be broadcasted by the
newOnCancelAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware) callback |
protected static class |
DataTableBehavior.ColumnReorderEvent
Provides an event object that will be broadcasted by the newColumnReorderAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware) callback
|
| 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) |
static com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
getCommandAjaxBehavior(CommandButton button,
List<CommandAjaxBehavior> behaviors)
Gets the
CommandAjaxBehavior associated to the CommandButton, if any |
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) |
boolean |
isColumnReorderEnabled()
Indicates whether the
reorderable option is set |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newColumnReorderAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'columnReorder' event |
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 DataSourceAjaxBehavior |
newOnCreateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
DataSourceAjaxBehavior that will be wired to the datasource's 'create' event |
protected DataSourceAjaxBehavior |
newOnDeleteAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
DataSourceAjaxBehavior that will be wired to the datasource's 'delete' event |
protected DataSourceAjaxBehavior |
newOnUpdateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
DataSourceAjaxBehavior 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.Behaviorpublic boolean isColumnReorderEnabled()
reorderable option is setfalse by defaultprotected 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 static com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior getCommandAjaxBehavior(CommandButton button, List<CommandAjaxBehavior> behaviors)
CommandAjaxBehavior associated to the CommandButton, if anybehaviors - the List of CommandAjaxBehaviorbutton - the CommandButtonnull if no CommandAjaxBehavior is associated to the buttonpublic 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 newColumnReorderAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior that will be wired to the 'columnReorder' eventsource - the IJQueryAjaxAwareJQueryAjaxBehavior by defaultprotected DataSourceAjaxBehavior newOnCreateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
DataSourceAjaxBehavior that will be wired to the datasource's 'create' eventsource - the IJQueryAjaxAwareDataSourceAjaxBehaviorprotected DataSourceAjaxBehavior newOnUpdateAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
DataSourceAjaxBehavior that will be wired to the datasource's 'update' eventsource - the IJQueryAjaxAwareDataSourceAjaxBehaviorprotected DataSourceAjaxBehavior newOnDeleteAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
DataSourceAjaxBehavior that will be wired to the datasource's 'delete' eventsource - the IJQueryAjaxAwareDataSourceAjaxBehaviorprotected 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 © 2021 7thWeb. All rights reserved.