java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.link.AbstractLink
org.apache.wicket.ajax.markup.html.AjaxLink<T>
de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
de.agilecoders.wicket.extensions.markup.html.bootstrap.spinner.SpinnerAjaxLink<T>
All Implemented Interfaces:
de.agilecoders.wicket.core.markup.html.bootstrap.button.IBootstrapButton<de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>>, Serializable, Iterable<Component>, IAjaxLink, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<T,AjaxLink<T>>, IMetadataContext<Serializable,Component>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public abstract class SpinnerAjaxLink<T> extends de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
A specialization of BootstrapAjaxLink that disables itself during the Ajax call and shows a loading spinner
See Also:
  • Constructor Details

    • SpinnerAjaxLink

      public SpinnerAjaxLink(String id, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type)
      Constructor.
      Parameters:
      id - The component id
      type - The Bootstrap type of the button
    • SpinnerAjaxLink

      public SpinnerAjaxLink(String id, IModel<T> model, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type)
      Constructor.
      Parameters:
      id - The component id
      model - The model to use for the label
      type - The Bootstrap type of the button
    • SpinnerAjaxLink

      public SpinnerAjaxLink(String id, IModel<T> model, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type, IModel<L> labelModel)
      Constructor.
      Parameters:
      id - The component id
      model - The model to use for the label
      type - The Bootstrap type of the button
      labelModel - The model for the link's label
  • Method Details

    • onInitialize

      protected void onInitialize()
      Overrides:
      onInitialize in class de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
    • setEffect

      public SpinnerAjaxLink<T> setEffect(SpinnerBehavior.Effect effect)
      Sets the effect to use
      Parameters:
      effect - The effect to use
      Returns:
      this, for chaining
    • setSpinnerColor

      public SpinnerAjaxLink<T> setSpinnerColor(SpinnerBehavior.Color color)
      Sets the color for the spinner
      Parameters:
      color - The color for the spinner
      Returns:
      this, for chaining
    • updateAjaxAttributes

      protected void updateAjaxAttributes(AjaxRequestAttributes attributes)
      Overrides:
      updateAjaxAttributes in class AjaxLink<T>
    • newLabel

      protected <L extends Serializable> Component newLabel(String markupId, IModel<L> model)
      Overrides:
      newLabel in class de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>
    • onConfigure

      protected void onConfigure()
      Overrides:
      onConfigure in class de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxLink<T>