public class DialogButton
extends java.lang.Object
implements org.apache.wicket.util.io.IClusterable
| Constructor and Description |
|---|
DialogButton(org.apache.wicket.model.IModel<java.lang.String> model)
Constructor
|
DialogButton(org.apache.wicket.model.IModel<java.lang.String> model,
boolean enabled)
Constructor
|
DialogButton(org.apache.wicket.model.IModel<java.lang.String> model,
java.lang.String icon)
Constructor
|
DialogButton(org.apache.wicket.model.IModel<java.lang.String> model,
java.lang.String icon,
boolean enabled)
Constructor
|
DialogButton(java.lang.String text)
Constructor
|
DialogButton(java.lang.String text,
boolean enabled)
Constructor
|
DialogButton(java.lang.String text,
java.lang.String icon)
Constructor
|
DialogButton(java.lang.String text,
java.lang.String icon,
boolean enabled)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates whether this
DialogButton is equal to another DialogButton.Are considered equals buttons having the same text representation, which is the text supplied to the constructor (if toString() is not overridden). |
protected java.lang.CharSequence |
getCallbackScript(ButtonAjaxBehavior behavior)
Gets the javascript statement that will generate an ajax GET request to the behavior for this assigned button
|
java.lang.String |
getIcon()
Gets the button's icon
|
java.lang.String |
getMarkupId()
Gets the markupId of the specified button.
This can be used to enable/disable the button |
int |
hashCode() |
boolean |
isEnabled()
Indicates whether the button is enabled
|
boolean |
match(java.lang.String text)
Indicates whether this
DialogButton text representation (toString()) match to the supplied text. |
void |
setEnabled(boolean enabled)
Sets the enable state of the button
|
void |
setEnabled(boolean enabled,
org.apache.wicket.ajax.AjaxRequestTarget target)
Sets the enable state of the button
|
void |
setIcon(java.lang.String icon)
Sets the button's icon
|
void |
setVisible(boolean visible,
org.apache.wicket.ajax.AjaxRequestTarget target)
Sets the visible state of the button
|
java.lang.String |
toString() |
public DialogButton(java.lang.String text)
text - the button's textpublic DialogButton(java.lang.String text,
java.lang.String icon)
text - the button's texticon - the button's iconpublic DialogButton(java.lang.String text,
boolean enabled)
text - the button's textenabled - indicates whether the button is enabledpublic DialogButton(java.lang.String text,
java.lang.String icon,
boolean enabled)
text - the button's texticon - the button's iconenabled - indicates whether the button is enabledpublic DialogButton(org.apache.wicket.model.IModel<java.lang.String> model)
model - the button's text modelpublic DialogButton(org.apache.wicket.model.IModel<java.lang.String> model,
java.lang.String icon)
model - the button's text modelicon - the button's iconpublic DialogButton(org.apache.wicket.model.IModel<java.lang.String> model,
boolean enabled)
model - the button's text modelenabled - indicates whether the button is enabledpublic DialogButton(org.apache.wicket.model.IModel<java.lang.String> model,
java.lang.String icon,
boolean enabled)
model - the button's text modelicon - the button's iconenabled - indicates whether the button is enabledpublic java.lang.String getIcon()
public void setIcon(java.lang.String icon)
icon - the css class (ie: ui-my-icon)public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - true or falsepublic void setEnabled(boolean enabled,
org.apache.wicket.ajax.AjaxRequestTarget target)
enabled - true or falsetarget - the AjaxRequestTargetpublic void setVisible(boolean visible,
org.apache.wicket.ajax.AjaxRequestTarget target)
visible - true or falsetarget - the AjaxRequestTargetpublic java.lang.String getMarkupId()
protected java.lang.CharSequence getCallbackScript(ButtonAjaxBehavior behavior)
behavior - the ButtonAjaxBehaviorpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
DialogButton is equal to another DialogButton.toString() is not overridden).equals in class java.lang.Objectobject - the DialogButton to compare topublic boolean match(java.lang.String text)
DialogButton text representation (toString()) match to the supplied text.text - the text to compare topublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 7thWeb. All Rights Reserved.