public class CommandButton extends AbstractButton
DataTable column| 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 |
|---|---|
String |
getCSSClass()
Gets the CSS class to be applied on the button
Caution: super.getCSSClass() should be called when overridden |
boolean |
isBuiltIn()
Indicates whether the button acts as a built-in one (like create, edit, update, destroy)
|
boolean |
isEnabled()
Indicates whether this button is enabled
|
void |
onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String value)
Triggered when the column-button is clicked
|
String |
toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior) |
equals, getName, getProperty, getText, hashCode, 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 boolean isEnabled()
true by defaultpublic String getCSSClass()
super.getCSSClass() should be called when overriddenpublic String toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior)
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target,
String value)
target - the AjaxRequestTargetvalue - the row's object valueCopyright © 2017 7thWeb. All rights reserved.