Module org.apache.wicket.extensions
Class AjaxIndicatorAppender
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.extensions.ajax.markup.html.AjaxIndicatorAppender
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,org.apache.wicket.util.io.IClusterable
A behavior that adds a span with wicket's default indicator gif to the end of the component's
markup. This span can be used as an ajax busy indicator. For an example usage see
IndicatingAjaxLink
Instances of this behavior must not be shared between components.
- Since:
- 1.2
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct.AjaxIndicatorAppender(ResourceReference indicator) Build a new instance specifying a custom busy indicator asResourceReference. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRender(Component component) final voidprotected CharSequenceReturns the markup id attribute of the outer most span of this indicator.protected StringvoidrenderHead(Component component, IHeaderResponse response) Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
AjaxIndicatorAppender
public AjaxIndicatorAppender()Construct. -
AjaxIndicatorAppender
Build a new instance specifying a custom busy indicator asResourceReference.- Parameters:
indicator- TheResourceReferenceto use as busy indicator.
-
-
Method Details
-
renderHead
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classBehavior
-
afterRender
- Overrides:
afterRenderin classBehavior
-
getIndicatorUrl
- Returns:
- url of the animated indicator image
-
getSpanClass
- Returns:
- css class name of the generated outer span
-
getMarkupId
Returns the markup id attribute of the outer most span of this indicator. This is the id of the span that should be hidden or show to hide or show the indicator.- Returns:
- markup id of outer most span
-
bind
-