Class AjaxIndicatingButtonBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
-
- com.googlecode.wicket.jquery.core.JQueryBehavior
-
- com.googlecode.wicket.jquery.ui.JQueryUIBehavior
-
- com.googlecode.wicket.jquery.ui.form.button.ButtonBehavior
-
- com.googlecode.wicket.jquery.ui.form.button.AjaxIndicatingButtonBehavior
-
- All Implemented Interfaces:
JQueryDestroyListener.IDestroyable
,Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public class AjaxIndicatingButtonBehavior extends ButtonBehavior
Provides a jQuery UI buttonJQueryBehavior
with an ajax indicator- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
CSS_INDICATOR
-
Fields inherited from class com.googlecode.wicket.jquery.ui.form.button.ButtonBehavior
METHOD
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AjaxIndicatingButtonBehavior(String selector, String icon, IndicatingAjaxButton.Position position)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
$()
protected com.googlecode.wicket.jquery.core.Options
newAjaxStartOptions()
Gets the newButton
'sOptions
to be used on ajax-startstatic org.apache.wicket.markup.head.HeaderItem
newIndicatorCssHeaderItem()
Build theCssHeaderItem
with the indicator styleprotected com.googlecode.wicket.jquery.core.Options
newOnAjaxStopOptions()
Gets the newButton
'sOptions
to be used on when ajax-stopprotected com.googlecode.wicket.jquery.core.Options
newOnClickOptions()
Gets the newButton
'sOptions
to be used on clickvoid
renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
-
Methods inherited from class com.googlecode.wicket.jquery.ui.JQueryUIBehavior
destroy, onConfigure, onDestroy, widget, widget, widget, widget
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelector
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
-
-
-
-
Field Detail
-
CSS_INDICATOR
public static final String CSS_INDICATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AjaxIndicatingButtonBehavior
protected AjaxIndicatingButtonBehavior(String selector, String icon, IndicatingAjaxButton.Position position)
Constructor- Parameters:
selector
- the html selector (ie: "#myId")icon
- the button's iconposition
- thePosition
of the ajax-indicator
-
-
Method Detail
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
- Specified by:
renderHead
in interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor
- Overrides:
renderHead
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
-
$
protected String $()
- Overrides:
$
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
-
newIndicatorCssHeaderItem
public static org.apache.wicket.markup.head.HeaderItem newIndicatorCssHeaderItem()
Build theCssHeaderItem
with the indicator style- Returns:
- the
HeaderItem
-
newOnClickOptions
protected com.googlecode.wicket.jquery.core.Options newOnClickOptions()
Gets the newButton
'sOptions
to be used on click- Returns:
- the
Options
-
newAjaxStartOptions
protected com.googlecode.wicket.jquery.core.Options newAjaxStartOptions()
Gets the newButton
'sOptions
to be used on ajax-start- Returns:
- the
Options
-
newOnAjaxStopOptions
protected com.googlecode.wicket.jquery.core.Options newOnAjaxStopOptions()
Gets the newButton
'sOptions
to be used on when ajax-stop- Returns:
- the
Options
-
-