|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.odlabs.wiquery.core.behavior.WiQueryAbstractBehavior
org.odlabs.wiquery.ui.button.ButtonBehavior
public class ButtonBehavior
$Id$
Creates a jQuery UI button behavior to decorate a link or a button HTML markup.
The click event is not a part of the jQuery UI framework
Constructor Summary | |
---|---|
ButtonBehavior()
Default constructor |
Method Summary | |
---|---|
JsStatement |
destroy()
Method to destroy the button This will return the element back to its pre-init state. |
void |
destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to destroy the button within the ajax request |
void |
detach(org.apache.wicket.Component component)
|
JsStatement |
disable()
Method to disable the button |
void |
disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to disable the button within the ajax request |
JsStatement |
enable()
Method to enable the button |
void |
enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to enable the button within the ajax request |
ButtonIcon |
getIcons()
|
String |
getLabel()
|
protected Options |
getOptions()
Method retrieving the options of the component |
Boolean |
isDisabled()
|
boolean |
isText()
|
void |
onBind()
Called when the component was bound to it's host component. |
void |
onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
|
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.html.IHeaderResponse response)
|
ButtonBehavior |
setDisabled(boolean disabled)
Disables (true) or enables (false) the button. |
ButtonBehavior |
setIcons(ButtonIcon icons)
Icons to display, with or without text (see text option). |
ButtonBehavior |
setIcons(UiIcon primary,
UiIcon secondary)
* Icons to display, with or without text (see text option). |
ButtonBehavior |
setLabel(org.apache.wicket.model.IModel<String> label)
Text to show on the button. |
ButtonBehavior |
setLabel(String label)
Text to show on the button. |
ButtonBehavior |
setText(boolean text)
Whether to show any text - when set to false (display no text), icons (see icons option) must be enabled, otherwise it'll be ignored. |
JsStatement |
statement()
Returns the main JsStatement used to create the plugin. |
JsStatement |
widget()
Method to returns the .ui-autocomplete element |
void |
widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to returns the .ui-autocomplete element within the ajax request |
Methods inherited from class org.odlabs.wiquery.core.behavior.WiQueryAbstractBehavior |
---|
bind, getComponent |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ButtonBehavior()
Method Detail |
---|
public void onBind()
WiQueryAbstractBehavior
onBind
in class WiQueryAbstractBehavior
public void detach(org.apache.wicket.Component component)
detach
in class org.apache.wicket.behavior.Behavior
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class org.apache.wicket.behavior.Behavior
protected Options getOptions()
public void onComponentTag(org.apache.wicket.Component component, org.apache.wicket.markup.ComponentTag tag)
onComponentTag
in class org.apache.wicket.behavior.Behavior
public JsStatement statement()
IWiQueryPlugin
JsStatement
used to create the plugin.
statement
in interface IWiQueryPlugin
statement
in class WiQueryAbstractBehavior
JsStatement
corresponding to this component.public ButtonBehavior setDisabled(boolean disabled)
disabled
-
public Boolean isDisabled()
public ButtonBehavior setText(boolean text)
text
-
public boolean isText()
public ButtonBehavior setIcons(ButtonIcon icons)
icons
-
public ButtonBehavior setIcons(UiIcon primary, UiIcon secondary)
primary
- The primary icon (should be non-null)secondary
- The secondary icon (might be null).
public ButtonIcon getIcons()
public ButtonBehavior setLabel(String label)
label
-
public ButtonBehavior setLabel(org.apache.wicket.model.IModel<String> label)
label
-
public String getLabel()
public JsStatement destroy()
public void destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement disable()
public void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement enable()
public void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
- public JsStatement widget()
public void widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |