public abstract class AbstractButton extends Object implements org.apache.wicket.util.io.IClusterable
DataTable| Modifier and Type | Field and Description |
|---|---|
static String |
CANCEL |
static String |
CREATE |
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 |
getName()
Gets the button name
|
String |
getProperty()
Gets the button property
|
org.apache.wicket.model.IModel<String> |
getText()
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 |
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 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> getText()
public String getProperty()
public boolean isVisible()
true by defaultpublic 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 © 2017 7thWeb. All rights reserved.