public class ToolbarButton extends AbstractButton
DataTable toolbarCANCEL, CREATE, CSS_ICON_ONLY, CSS_STATE_DISABLED, DESTROY, EDIT, SAVE| Constructor and Description |
|---|
ToolbarButton(String name)
Constructor for built-in commands
|
ToolbarButton(String name,
org.apache.wicket.model.IModel<String> text)
Constructor for built-in commands
|
ToolbarButton(String name,
org.apache.wicket.model.IModel<String> text,
String property)
Constructor
|
ToolbarButton(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,
List<String> values)
Triggered when the toolbar-button is clicked
|
org.apache.wicket.ajax.json.JSONObject |
toJSONObject() |
String |
toString() |
equals, getCSSClass, getIcon, getIconClass, getName, getProperty, getTextModel, hashCode, isEnabled, isVisible, matchpublic ToolbarButton(String name)
name - the button's namepublic ToolbarButton(String name, org.apache.wicket.model.IModel<String> text)
name - the button's nametext - the button's textpublic ToolbarButton(String name, String property)
name - the button's nameproperty - the property used to retrieve the row's object valuepublic boolean isBuiltIn()
AbstractButtonisBuiltIn in class AbstractButtonpublic org.apache.wicket.ajax.json.JSONObject toJSONObject()
Copyright © 2021 7thWeb. All rights reserved.