Class ToolbarButton
- java.lang.Object
-
- com.googlecode.wicket.kendo.ui.datatable.button.AbstractButton
-
- com.googlecode.wicket.kendo.ui.datatable.button.ToolbarButton
-
- All Implemented Interfaces:
com.googlecode.wicket.jquery.core.IJsonFactory
,Serializable
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
SecuredToolbarButton
public class ToolbarButton extends AbstractButton
Provides a toolbar button object that can be used inDataTable
toolbar- 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 ToolbarButton(String name)
Constructor for built-in commandsToolbarButton(String name, String property)
ConstructorToolbarButton(String name, org.apache.wicket.model.IModel<String> text)
Constructor for built-in commandsToolbarButton(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, List<String> values)
Triggered when the toolbar-button is clickedcom.github.openjson.JSONObject
toJSONObject()
String
toString()
-
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
-
ToolbarButton
public ToolbarButton(String name)
Constructor for built-in commands- Parameters:
name
- the button's name
-
ToolbarButton
public ToolbarButton(String name, org.apache.wicket.model.IModel<String> text)
Constructor for built-in commands- Parameters:
name
- the button's nametext
- the button's text
-
ToolbarButton
public ToolbarButton(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()
Description copied from class:AbstractButton
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
-
toJSONObject
public com.github.openjson.JSONObject toJSONObject()
-
-