public interface IDataTableListener
extends org.apache.wicket.util.io.IClusterable
DataTable widget and the DataTableBehavior| Modifier and Type | Method and Description |
|---|---|
void |
onCancel(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when an editing is cancelled
|
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CommandButton button,
String value)
Triggered when a column button is clicked.
|
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
ToolbarButton button,
List<String> values)
Triggered when a toolbar button is clicked.
|
void |
onColumnReorder(org.apache.wicket.ajax.AjaxRequestTarget target,
int oldIndex,
int newIndex,
org.apache.wicket.ajax.json.JSONObject column)
Triggered when the user changes the order of a column.
|
void |
onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
Triggered when datasource 'create' function is raised
|
void |
onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
Triggered when datasource 'destroy' function is raised
|
void |
onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
Triggered when datasource 'update' function is raised
If batch mode is used, the object is a JSONArray that might be retrieved this way: object.optJSONArray("models") |
void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
ToolbarButton button,
List<String> values)
target - the AjaxRequestTargetbutton - the button namevalues - the list of retrieved valuesvoid onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CommandButton button,
String value)
target - the AjaxRequestTargetbutton - the button being clickedvalue - value retrieved from the row, according to the property supplied to the CommandButton that fired the eventvoid onCancel(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetvoid onColumnReorder(org.apache.wicket.ajax.AjaxRequestTarget target,
int oldIndex,
int newIndex,
org.apache.wicket.ajax.json.JSONObject column)
target - the AjaxRequestTargetoldIndex - the old column indexnewIndex - the new column indexcolumn - the column's JSONObjectvoid onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
target - the AjaxRequestTargetobject - the JSONObject holding the row datavoid onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
batch mode is used, the object is a JSONArray that might be retrieved this way: object.optJSONArray("models")target - the AjaxRequestTargetobject - the JSONObject holding the row datavoid onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
target - the AjaxRequestTargetobject - the JSONObject holding the row dataCopyright © 2021 7thWeb. All rights reserved.