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
METHODFields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAjaxIndicatingButtonBehavior(String selector, String icon, IndicatingAjaxButton.Position position) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected String$()protected com.googlecode.wicket.jquery.core.OptionsGets the newButton'sOptionsto be used on ajax-startstatic org.apache.wicket.markup.head.HeaderItemBuild theCssHeaderItemwith the indicator styleprotected com.googlecode.wicket.jquery.core.OptionsGets the newButton'sOptionsto be used on when ajax-stopprotected com.googlecode.wicket.jquery.core.OptionsGets the newButton'sOptionsto be used on clickvoidrenderHead(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, widgetMethods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelectorMethods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringMethods 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- thePositionof the ajax-indicator
-
-
Method Details
-
renderHead
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response) - Specified by:
renderHeadin interfaceorg.apache.wicket.markup.html.IComponentAwareHeaderContributor- Overrides:
renderHeadin 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 theCssHeaderItemwith the indicator style- Returns:
- the
HeaderItem
-
newOnClickOptions
protected com.googlecode.wicket.jquery.core.Options newOnClickOptions()Gets the newButton'sOptionsto be used on click- Returns:
- the
Options
-
newAjaxStartOptions
protected com.googlecode.wicket.jquery.core.Options newAjaxStartOptions()Gets the newButton'sOptionsto be used on ajax-start- Returns:
- the
Options
-
newOnAjaxStopOptions
protected com.googlecode.wicket.jquery.core.Options newOnAjaxStopOptions()Gets the newButton'sOptionsto be used on when ajax-stop- Returns:
- the
Options
-