|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.wicket.jquery.ui.widget.dialog.DialogButton
public class DialogButton
Provides the button object that can be used in dialogs
Constructor Summary | |
---|---|
DialogButton(org.apache.wicket.model.IModel<String> model)
Constructor |
|
DialogButton(org.apache.wicket.model.IModel<String> model,
boolean enabled)
Constructor |
|
DialogButton(org.apache.wicket.model.IModel<String> model,
String icon)
Constructor |
|
DialogButton(org.apache.wicket.model.IModel<String> model,
String icon,
boolean enabled)
Constructor |
|
DialogButton(String text)
Constructor |
|
DialogButton(String text,
boolean enabled)
Constructor |
|
DialogButton(String text,
String icon)
Constructor |
|
DialogButton(String text,
String icon,
boolean enabled)
Constructor |
Method Summary | |
---|---|
boolean |
equals(Object object)
Indicates whether this DialogButton is equal to another DialogButton . |
String |
getIcon()
Gets the button's icon |
protected 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 |
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(String icon)
Sets the button's icon |
void |
setVisible(boolean visible,
org.apache.wicket.ajax.AjaxRequestTarget target)
Sets the visible state of the button |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DialogButton(String text)
text
- the button's textpublic DialogButton(String text, String icon)
text
- the button's texticon
- the button's iconpublic DialogButton(String text, boolean enabled)
text
- the button's textenabled
- indicates whether the button is enabledpublic DialogButton(String text, 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<String> model)
model
- the button's text modelpublic DialogButton(org.apache.wicket.model.IModel<String> model, String icon)
model
- the button's text modelicon
- the button's iconpublic DialogButton(org.apache.wicket.model.IModel<String> model, boolean enabled)
model
- the button's text modelenabled
- indicates whether the button is enabledpublic DialogButton(org.apache.wicket.model.IModel<String> model, String icon, boolean enabled)
model
- the button's text modelicon
- the button's iconenabled
- indicates whether the button is enabledMethod Detail |
---|
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.ajax.AjaxRequestTarget target)
enabled
- true or falsetarget
- the AjaxRequestTarget
public void setVisible(boolean visible, org.apache.wicket.ajax.AjaxRequestTarget target)
visible
- true or falsetarget
- the AjaxRequestTarget
protected String getMarkupId()
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
DialogButton
is equal to another DialogButton
. Are considered equals buttons having the same text representation (toString()
), which is the text supplied to the constructor (if not overridden).
equals
in class Object
object
- either a DialogButton
or a String
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |