Class CommandButton
- java.lang.Object
-
- com.googlecode.wicket.kendo.ui.datatable.button.AbstractButton
-
- com.googlecode.wicket.kendo.ui.datatable.button.CommandButton
-
- All Implemented Interfaces:
com.googlecode.wicket.jquery.core.IJsonFactory
,Serializable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
SecuredCommandButton
public class CommandButton extends AbstractButton
Provides a command button object that can be used inDataTable
column- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.googlecode.wicket.kendo.ui.datatable.button.AbstractButton
CANCEL, CREATE, CSS_ICON_ONLY, CSS_STATE_DISABLED, DESTROY, EDIT, SAVE
-
-
Constructor Summary
Constructors Constructor Description CommandButton(String name)
Constructor for either built-in commands or linked to 'id' property (default)CommandButton(String name, String property)
ConstructorCommandButton(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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 clickedcom.github.openjson.JSONObject
toJSONObject()
String
toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior)
-
Methods inherited from class com.googlecode.wicket.kendo.ui.datatable.button.AbstractButton
equals, getCSSClass, getIcon, getIconClass, getName, getProperty, getTextModel, hashCode, isEnabled, isVisible, match
-
-
-
-
Constructor Detail
-
CommandButton
public CommandButton(String name)
Constructor for either built-in commands or linked to 'id' property (default)- Parameters:
name
- the button's name
-
CommandButton
public CommandButton(String name, org.apache.wicket.model.IModel<String> text)
Constructor for either built-in commands or linked to 'id' property (default)- Parameters:
name
- the button's nametext
- the button's text
-
CommandButton
public CommandButton(String name, String property)
Constructor- Parameters:
name
- the button's nameproperty
- the property used to retrieve the row's object value
-
-
Method Detail
-
isBuiltIn
public boolean isBuiltIn()
Indicates whether the button acts as a built-in one (like create, edit, update, destroy)- Specified by:
isBuiltIn
in classAbstractButton
- Returns:
- true if the button is a built-in one
- See Also:
- http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.command
-
toString
public String toString(com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior behavior)
-
toJSONObject
public com.github.openjson.JSONObject toJSONObject()
-
onClick
public void onClick(org.apache.wicket.ajax.AjaxRequestTarget target, String value)
Triggered when the column-button is clicked- Parameters:
target
- theAjaxRequestTarget
value
- the row's object value
-
-