public abstract class AbstractButton extends Object implements com.googlecode.wicket.jquery.core.IJsonFactory, org.apache.wicket.util.io.IClusterable
DataTableCSS_ICON_ONLY is not supplied.
.k-button.w-icon-only {
padding: .2em;
min-width: 0px !important;
}
.k-button.w-icon-only > .k-icon {
margin: auto 2px;
}
| Modifier and Type | Field and Description |
|---|---|
static String |
CANCEL |
static String |
CREATE |
static String |
CSS_ICON_ONLY
css class for icon-only button
|
static String |
CSS_STATE_DISABLED
css class for disabled button state
|
static String |
DESTROY |
static String |
EDIT |
static String |
SAVE |
| Constructor and Description |
|---|
AbstractButton(String name)
Constructor with default property to
null) |
AbstractButton(String name,
org.apache.wicket.model.IModel<String> text)
Constructor with default property to
null) |
AbstractButton(String name,
org.apache.wicket.model.IModel<String> text,
String property)
Constructor
|
AbstractButton(String name,
String property)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Indicates whether this
AbstractButton is equal to another AbstractButton. |
String |
getCSSClass()
Gets the CSS class to be applied on the button
Caution: super.getCSSClass() should be called when overridden |
String |
getIcon()
Gets the icon being displayed in the button
|
String |
getIconClass()
Gets the CSS class for the icon
|
String |
getName()
Gets the button name
|
String |
getProperty()
Gets the button property
|
org.apache.wicket.model.IModel<String> |
getTextModel()
Gets the button text
|
int |
hashCode() |
abstract 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
|
boolean |
isVisible()
Indicates whether the button should be visible
|
boolean |
match(String name)
Indicates whether this
AbstractButton name match to the supplied name. |
public static final String CSS_ICON_ONLY
public static final String CSS_STATE_DISABLED
public static final String EDIT
public static final String SAVE
public static final String CREATE
public static final String CANCEL
public static final String DESTROY
public AbstractButton(String name)
null)name - the button's namepublic AbstractButton(String name, org.apache.wicket.model.IModel<String> text)
null)name - the button's nametext - the button's textpublic AbstractButton(String name, String property)
name - the button's nameproperty - the property used to retrieve the row's object valuepublic String getName()
public org.apache.wicket.model.IModel<String> getTextModel()
public String getProperty()
public boolean isEnabled()
true by defaultpublic boolean isVisible()
true by defaultpublic String getCSSClass()
super.getCSSClass() should be called when overriddenpublic String getIcon()
KendoIcon.NONE by defaultgetIconClass()public String getIconClass()
getIcon()public abstract boolean isBuiltIn()
public boolean equals(Object object)
AbstractButton is equal to another AbstractButton. Are considered equals buttons having the same name.equals in class Objectobject - a AbstractButton to compare topublic boolean match(String name)
AbstractButton name match to the supplied name.name - the name to compare toCopyright © 2021 7thWeb. All rights reserved.