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

public class AjaxIndicatingButtonBehavior extends ButtonBehavior
Provides a jQuery UI button JQueryBehavior with an ajax indicator
Author:
Sebastien Briquet - sebfz1
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    $()
     
    protected com.googlecode.wicket.jquery.core.Options
    Gets the new Button's Options to be used on ajax-start
    static org.apache.wicket.markup.head.HeaderItem
    Build the CssHeaderItem with the indicator style
    protected com.googlecode.wicket.jquery.core.Options
    Gets the new Button's Options to be used on when ajax-stop
    protected com.googlecode.wicket.jquery.core.Options
    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.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • 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 Details

    • 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