Class 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 button JQueryBehavior 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.core.JQueryBehavior

        method, options, selector
    • 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 new Button's Options to be used on ajax-start
      static org.apache.wicket.markup.head.HeaderItem newIndicatorCssHeaderItem()
      Build the CssHeaderItem with the indicator style
      protected com.googlecode.wicket.jquery.core.Options newOnAjaxStopOptions()
      Gets the new Button's Options to be used on when ajax-stop
      protected com.googlecode.wicket.jquery.core.Options newOnClickOptions()
      Gets the new Button's Options to be used on click
      void renderHead​(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)  
      • 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
    • Constructor Detail

      • AjaxIndicatingButtonBehavior

        protected AjaxIndicatingButtonBehavior​(String selector,
                                               String icon,
                                               IndicatingAjaxButton.Position position)
        Constructor
        Parameters:
        selector - the html selector (ie: "#myId")
        icon - the button's icon
        position - the Position 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 interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
        Overrides:
        renderHead in class com.googlecode.wicket.jquery.core.JQueryBehavior
      • $

        protected String $()
        Overrides:
        $ in class com.googlecode.wicket.jquery.core.JQueryBehavior
      • newIndicatorCssHeaderItem

        public static org.apache.wicket.markup.head.HeaderItem newIndicatorCssHeaderItem()
        Build the CssHeaderItem with the indicator style
        Returns:
        the HeaderItem
      • newOnClickOptions

        protected com.googlecode.wicket.jquery.core.Options newOnClickOptions()
        Gets the new Button's Options to be used on click
        Returns:
        the Options
      • newAjaxStartOptions

        protected com.googlecode.wicket.jquery.core.Options newAjaxStartOptions()
        Gets the new Button's Options to be used on ajax-start
        Returns:
        the Options
      • newOnAjaxStopOptions

        protected com.googlecode.wicket.jquery.core.Options newOnAjaxStopOptions()
        Gets the new Button's Options to be used on when ajax-stop
        Returns:
        the Options