public abstract class DataTableBehavior extends KendoAbstractBehavior implements IJQueryAjaxAware
method, options, selector| Constructor and Description |
|---|
DataTableBehavior(String selector)
Constructor
|
DataTableBehavior(String selector,
Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
protected abstract List<? extends IColumn> |
getColumns()
|
protected abstract long |
getRowCount()
Gets the row count
|
protected abstract CharSequence |
getSourceCallbackUrl()
Gets the data-source behavior's url
|
protected abstract ButtonAjaxBehavior |
newButtonAjaxBehavior(IJQueryAjaxAware source,
ColumnButton button)
Gets a new
ButtonAjaxBehavior that will be called by the corresponding table's button. |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event) |
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
ColumnButton button,
String value)
Triggered when a button is clicked.
|
void |
onConfigure(org.apache.wicket.Component component) |
$, $, $, beforeRender, getMethod, getOption, getOptions, getSelector, on, on, renderHead, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, renderScript, toStringpublic DataTableBehavior(String selector)
selector - the html selector (ie: "#myId")public void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorprotected abstract long getRowCount()
protected abstract CharSequence getSourceCallbackUrl()
public void onConfigure(org.apache.wicket.Component component)
onConfigure in class JQueryBehaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
onAjax in interface IJQueryAjaxAwareprotected abstract ButtonAjaxBehavior newButtonAjaxBehavior(IJQueryAjaxAware source, ColumnButton button)
ButtonAjaxBehavior that will be called by the corresponding table's button.source - the IJQueryAjaxAwarebutton - the button that is passed to the behavior so it can be retrieved via the ButtonAjaxBehavior.ClickEventButtonAjaxBehaviorpublic void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
ColumnButton button,
String value)
target - the AjaxRequestTargetbutton - the button being clickedvalue - value retrieved from the row, according to the property supplied to the ColumnButton that fired the eventCopyright © 2014 7thWeb. All Rights Reserved.