All Implemented Interfaces:
de.agilecoders.wicket.core.markup.html.bootstrap.button.IBootstrapButton<de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxButton>, Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<String,FormComponent<String>>, IMetadataContext<Serializable,Component>, IFormModelUpdateListener, IFormSubmitter, IFormSubmittingComponent, IFormVisitorParticipant, ILabelProvider<String>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

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

    • SpinnerAjaxButton

      public SpinnerAjaxButton(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
    • SpinnerAjaxButton

      public SpinnerAjaxButton(String id, IModel<String> 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
    • SpinnerAjaxButton

      public SpinnerAjaxButton(String id, Form<?> form, de.agilecoders.wicket.core.markup.html.bootstrap.button.Buttons.Type type)
      Constructor.
      Parameters:
      id - The component id
      form - The form that this button will submit
      type - The Bootstrap type of the button
    • SpinnerAjaxButton

      public SpinnerAjaxButton(String id, IModel<String> model, Form<?> form, 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
      form - The form that this button will submit
      type - The Bootstrap type of the button
  • Method Details

    • onInitialize

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

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

      public SpinnerAjaxButton 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 AjaxButton
    • onConfigure

      protected void onConfigure()
      Overrides:
      onConfigure in class de.agilecoders.wicket.core.markup.html.bootstrap.button.BootstrapAjaxButton