org.apache.wicket.extensions.ajax.markup.html
Class WicketAjaxIndicatorAppender
java.lang.Object
org.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.extensions.ajax.markup.html.WicketAjaxIndicatorAppender
- All Implemented Interfaces:
- java.io.Serializable, IBehavior, IClusterable, IHeaderContributor
public class WicketAjaxIndicatorAppender
- extends AbstractBehavior
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:
IndicatingAjaxLink,
IAjaxIndicatorAware,
Serialized Form
| Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
afterRender, beforeRender, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, rendered |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WicketAjaxIndicatorAppender
public WicketAjaxIndicatorAppender()
- Construct.
renderHead
public void renderHead(IHeaderResponse response)
- Specified by:
renderHead in interface IHeaderContributor- Overrides:
renderHead in class AbstractBehavior
- See Also:
AbstractBehavior.renderHead(IHeaderResponse)
onRendered
public void onRendered(Component component)
- Overrides:
onRendered in class AbstractBehavior
- See Also:
AbstractBehavior.onRendered(org.apache.wicket.Component)
getIndicatorUrl
protected java.lang.CharSequence getIndicatorUrl()
- Returns:
- url of the animated indicator image
getSpanClass
protected java.lang.String getSpanClass()
- Returns:
- css class name of the generated outer span
getMarkupId
public java.lang.String 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
public final void bind(Component component)
- Specified by:
bind in interface IBehavior- Overrides:
bind in class AbstractBehavior
- See Also:
AbstractBehavior.bind(org.apache.wicket.Component)
Copyright © 2004-2009 Apache Software Foundation. All Rights Reserved.