public class CommandButton extends AbstractButton
DataTable
columnConstructor and Description |
---|
CommandButton(String name)
Constructor for built-in commands (no property supplied)
|
CommandButton(String name,
org.apache.wicket.model.IModel<String> text)
Constructor for built-in commands (no property supplied)
|
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
|
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
|
String |
toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior) |
equals, getName, getProperty, getText, hashCode, isVisible, match
public CommandButton(String name)
name
- the button's namepublic CommandButton(String name, String property)
name
- the button's nameproperty
- the property used to retrieve the row's object valuepublic CommandButton(String name, org.apache.wicket.model.IModel<String> text)
name
- the button's nametext
- the button's textpublic boolean isBuiltIn()
isBuiltIn
in class AbstractButton
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.command
public String getCSSClass()
public String toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior)
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, String value)
target
- the AjaxRequestTarget
value
- the row's object valueCopyright © 2015 7thWeb. All rights reserved.