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
Provides a jQuery UI button
JQueryBehavior
with an ajax indicator- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Field Summary
FieldsFields inherited from class com.googlecode.wicket.jquery.ui.form.button.ButtonBehavior
METHOD
Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AjaxIndicatingButtonBehavior
(String selector, String icon, IndicatingAjaxButton.Position position) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected String
$()
protected com.googlecode.wicket.jquery.core.Options
Gets the newButton
'sOptions
to be used on ajax-startstatic org.apache.wicket.markup.head.HeaderItem
Build theCssHeaderItem
with the indicator styleprotected com.googlecode.wicket.jquery.core.Options
Gets the newButton
'sOptions
to be used on when ajax-stopprotected com.googlecode.wicket.jquery.core.Options
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
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind
-
Field Details
-
CSS_INDICATOR
- See Also:
-
-
Constructor Details
-
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 Details
-
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
-
$
- 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
-