public class DialogButton extends Object implements org.apache.wicket.util.io.IClusterable
Constructor and Description |
---|
DialogButton(String name,
org.apache.wicket.model.IModel<String> model)
Constructor
|
DialogButton(String name,
org.apache.wicket.model.IModel<String> model,
boolean enabled)
Constructor
|
DialogButton(String name,
org.apache.wicket.model.IModel<String> model,
String icon)
Constructor
|
DialogButton(String name,
org.apache.wicket.model.IModel<String> model,
String icon,
boolean enabled)
Constructor
|
DialogButton(String name,
String text)
Deprecated.
this ctor is *not* deprecated but this warning aims to warn you about ctor change in 6.20.0, was previously (String text, String icon). Please update by adding 'name' or use Model for safety
|
DialogButton(String name,
String text,
boolean enabled)
Deprecated.
this ctor is *not* deprecated but this warning aims to warn you about ctor change in 6.20.0, was previously (String text, String icon, boolean enabled). Please update by adding 'name' or use Model for safety
|
DialogButton(String name,
String text,
String icon)
Constructor
|
DialogButton(String name,
String text,
String icon,
boolean enabled)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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 CharSequence |
getCallbackScript(ButtonAjaxBehavior behavior)
Gets the javascript statement that will generate an ajax GET request to the behavior for this assigned button
|
String |
getIcon()
Gets the button's icon
|
String |
getMarkupId()
Gets the markupId of the specified button.
This can be used to enable/disable the button |
String |
getName()
Gets the button's name
|
int |
hashCode() |
boolean |
isEnabled()
Indicates whether the button is enabled
|
boolean |
match(String name)
Indicates whether this
DialogButton name match the supplied name. |
void |
setEnabled(boolean enabled)
Sets the enable state of the button
|
void |
setEnabled(boolean enabled,
org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Sets the enable state of the button
|
void |
setIcon(String icon)
Sets the button's icon
|
void |
setVisible(boolean visible,
org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Sets the visible state of the button
|
String |
toString() |
public DialogButton(String name, String text)
text
- the button's textpublic DialogButton(String name, String text, String icon)
text
- the button's texticon
- the button's iconpublic DialogButton(String name, String text, boolean enabled)
text
- the button's textenabled
- indicates whether the button is enabledpublic DialogButton(String name, String text, String icon, boolean enabled)
text
- the button's texticon
- the button's iconenabled
- indicates whether the button is enabledpublic DialogButton(String name, org.apache.wicket.model.IModel<String> model)
model
- the button's text modelpublic DialogButton(String name, org.apache.wicket.model.IModel<String> model, String icon)
model
- the button's text modelicon
- the button's iconpublic DialogButton(String name, org.apache.wicket.model.IModel<String> model, boolean enabled)
model
- the button's text modelenabled
- indicates whether the button is enabledpublic String getName()
public String getIcon()
public void setIcon(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.core.request.handler.IPartialPageRequestHandler handler)
enabled
- true or falsehandler
- the IPartialPageRequestHandler
public void setVisible(boolean visible, org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
visible
- true or falsehandler
- the IPartialPageRequestHandler
public String getMarkupId()
protected CharSequence getCallbackScript(ButtonAjaxBehavior behavior)
behavior
- the ButtonAjaxBehavior
public boolean equals(Object object)
DialogButton
is equal to another DialogButton
.toString()
is not overridden).equals
in class Object
object
- the DialogButton
to compare topublic boolean match(String name)
DialogButton
name match the supplied name.name
- the name to compare toCopyright © 2015 7thWeb. All rights reserved.