public class CommandButton extends AbstractButton
DataTable columnCANCEL, CREATE, CSS_ICON_ONLY, CSS_STATE_DISABLED, DESTROY, EDIT, SAVE| Constructor and Description |
|---|
CommandButton(String name)
Constructor for either built-in commands or linked to 'id' property (default)
|
CommandButton(String name,
org.apache.wicket.model.IModel<String> text)
Constructor for either built-in commands or linked to 'id' property (default)
|
CommandButton(String name,
org.apache.wicket.model.IModel<String> text,
String property)
Constructor
|
CommandButton(String name,
String property)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isBuiltIn()
Indicates whether the button acts as a built-in one (like create, edit, update, destroy)
|
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String value)
Triggered when the column-button is clicked
|
org.apache.wicket.ajax.json.JSONObject |
toJSONObject() |
String |
toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior) |
equals, getCSSClass, getIcon, getIconClass, getName, getProperty, getTextModel, hashCode, isEnabled, isVisible, matchpublic CommandButton(String name)
name - the button's namepublic CommandButton(String name, org.apache.wicket.model.IModel<String> text)
name - the button's nametext - the button's textpublic CommandButton(String name, String property)
name - the button's nameproperty - the property used to retrieve the row's object valuepublic boolean isBuiltIn()
isBuiltIn in class AbstractButtonpublic String toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior)
public org.apache.wicket.ajax.json.JSONObject toJSONObject()
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String value)
target - the AjaxRequestTargetvalue - the row's object valueCopyright © 2021 7thWeb. All rights reserved.