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
|
com.github.openjson.JSONObject |
toJSONObject() |
String |
toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior) |
equals, getCSSClass, getIcon, getIconClass, getName, getProperty, getTextModel, hashCode, isEnabled, isVisible, match
public 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 AbstractButton
public String toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior)
public com.github.openjson.JSONObject toJSONObject()
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, String value)
target
- the AjaxRequestTarget
value
- the row's object valueCopyright © 2019 7thWeb. All rights reserved.