public class WindowButton extends Object implements org.apache.wicket.util.io.IClusterable
MessageWindow| Constructor and Description |
|---|
WindowButton(String name,
org.apache.wicket.model.IModel<String> model)
Constructor
|
WindowButton(String name,
org.apache.wicket.model.IModel<String> model,
boolean enabled)
Constructor
|
WindowButton(String name,
org.apache.wicket.model.IModel<String> model,
String icon)
Constructor
|
WindowButton(String name,
org.apache.wicket.model.IModel<String> model,
String icon,
boolean enabled)
Main constructor
|
WindowButton(String name,
String text)
Constructor
|
WindowButton(String name,
String text,
boolean enabled)
Constructor
|
WindowButton(String name,
String text,
String icon)
Constructor
|
WindowButton(String name,
String text,
String icon,
boolean enabled)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Indicates whether this
WindowButton is equal to another WindowButton.Are considered equals buttons having the same text representation, which is the text supplied to the constructor (if toString() is not overridden). |
boolean |
getDefaultFormProcessing()
Indicates whether the form will be validated and updated.
|
String |
getIcon()
Gets the button's icon
|
String |
getName()
Gets the button's name
|
int |
hashCode() |
boolean |
isEnabled()
Indicates whether the button is enabled
|
boolean |
isIndicating()
Indicates whether the button has a busy indicator
|
boolean |
isVisible()
Indicates whether the button is visible
|
boolean |
match(String name)
Indicates whether this
WindowButton name match the supplied name. |
static WindowButton |
of(String name,
org.apache.wicket.model.IModel<String> model,
boolean formProcessing)
Helper that creates a new
WindowButton |
static WindowButton |
of(String name,
org.apache.wicket.model.IModel<String> model,
String icon,
boolean formProcessing)
Helper that creates a new
WindowButton |
WindowButton |
setDefaultFormProcessing(boolean processing)
Set the default form processing
|
void |
setIcon(String icon)
Sets the button's icon
|
String |
toString() |
public WindowButton(String name, String text)
name - the button's nametext - the button's textpublic WindowButton(String name, String text, String icon)
name - the button's nametext - the button's texticon - the button's iconpublic WindowButton(String name, String text, boolean enabled)
name - the button's nametext - the button's textenabled - indicates whether the button is enabledpublic WindowButton(String name, String text, String icon, boolean enabled)
name - the button's nametext - the button's texticon - the button's iconenabled - indicates whether the button is enabledpublic WindowButton(String name, org.apache.wicket.model.IModel<String> model)
name - the button's namemodel - the button's textpublic WindowButton(String name, org.apache.wicket.model.IModel<String> model, String icon)
name - the button's namemodel - the button's texticon - the button's iconpublic WindowButton(String name, org.apache.wicket.model.IModel<String> model, boolean enabled)
name - the button's namemodel - the button's textenabled - indicates whether the button is enabledpublic static WindowButton of(String name, org.apache.wicket.model.IModel<String> model, boolean formProcessing)
WindowButtonname - the button's namemodel - the button's textformProcessing - whether the form will be validated and updatedWindowButtonpublic static WindowButton of(String name, org.apache.wicket.model.IModel<String> model, String icon, boolean formProcessing)
WindowButtonname - the button's namemodel - the button's texticon - the button's iconformProcessing - whether the form will be validated and updatedWindowButtonpublic String getName()
public String getIcon()
public void setIcon(String icon)
icon - the css class (ie: k-i-icon)public boolean isEnabled()
public boolean isVisible()
public boolean isIndicating()
getDefaultFormProcessing() by defaultpublic boolean getDefaultFormProcessing()
IFormSubmitter.getDefaultFormProcessing()public WindowButton setDefaultFormProcessing(boolean processing)
processing - true or falsepublic boolean equals(Object object)
WindowButton is equal to another WindowButton.toString() is not overridden).equals in class Objectobject - the WindowButton to compare topublic boolean match(String name)
WindowButton name match the supplied name.name - the name to compare toCopyright © 2021 7thWeb. All rights reserved.