public class DataTableAdapter extends Object implements IDataTableListener
IDataTableListener| Constructor and Description |
|---|
DataTableAdapter() |
| 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") |
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
ToolbarButton button,
List<String> values)
IDataTableListeneronClick in interface IDataTableListenertarget - the AjaxRequestTargetbutton - the button namevalues - the list of retrieved valuespublic void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
CommandButton button,
String value)
IDataTableListeneronClick in interface IDataTableListenertarget - the AjaxRequestTargetbutton - the button being clickedvalue - value retrieved from the row, according to the property supplied to the CommandButton that fired the eventpublic void onCancel(org.apache.wicket.ajax.AjaxRequestTarget target)
IDataTableListeneronCancel in interface IDataTableListenertarget - the AjaxRequestTargetpublic void onColumnReorder(org.apache.wicket.ajax.AjaxRequestTarget target,
int oldIndex,
int newIndex,
org.apache.wicket.ajax.json.JSONObject column)
IDataTableListeneronColumnReorder in interface IDataTableListenertarget - the AjaxRequestTargetoldIndex - the old column indexnewIndex - the new column indexcolumn - the column's JSONObjectpublic void onCreate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
IDataTableListeneronCreate in interface IDataTableListenertarget - the AjaxRequestTargetobject - the JSONObject holding the row datapublic void onUpdate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
IDataTableListenerbatch mode is used, the object is a JSONArray that might be retrieved this way: object.optJSONArray("models")onUpdate in interface IDataTableListenertarget - the AjaxRequestTargetobject - the JSONObject holding the row datapublic void onDelete(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.ajax.json.JSONObject object)
IDataTableListeneronDelete in interface IDataTableListenertarget - the AjaxRequestTargetobject - the JSONObject holding the row dataCopyright © 2021 7thWeb. All rights reserved.