Module wicket.bootstrap.extensions
Class SpinnerBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.extensions.markup.html.bootstrap.spinner.SpinnerBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
A behavior that applies the CSS classes required by Ladda UI.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe available colorsstatic enumThe available UI effects -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonComponentTag(Component component, ComponentTag tag) voidrenderHead(Component component, IHeaderResponse response) withEffect(SpinnerBehavior.Effect effect) Sets the effect to usewithSmall(boolean small) Sets if spinner will be small or notSets the color for the spinnerMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
SpinnerBehavior
public SpinnerBehavior()
-
-
Method Details
-
withEffect
Sets the effect to use- Parameters:
effect- The effect to use- Returns:
this, for chaining
-
withSpinnerColor
Sets the color for the spinner- Parameters:
color- The color for the spinner- Returns:
this, for chaining
-
withSmall
Sets if spinner will be small or not- Parameters:
small- The effect to use- Returns:
this, for chaining
-
onComponentTag
- Overrides:
onComponentTagin classBehavior
-
renderHead
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classBehavior
-