public class LaddaBehavior
extends org.apache.wicket.behavior.Behavior
A behavior that applies the CSS classes required by Ladda UI.
| Modifier and Type | Class and Description |
|---|---|
static class |
LaddaBehavior.Effect
The available UI effects
|
| Constructor and Description |
|---|
LaddaBehavior() |
| Modifier and Type | Method and Description |
|---|---|
void |
onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag) |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
LaddaBehavior |
withEffect(LaddaBehavior.Effect effect)
Sets the effect to use
|
LaddaBehavior |
withSpinnerColor(String color)
Sets the color for the spinner
|
LaddaBehavior |
withSpinnerSize(int size)
Sets the size of the spinner in pixels
|
public LaddaBehavior withEffect(LaddaBehavior.Effect effect)
Sets the effect to use
effect - The effect to usethis, for chainingpublic LaddaBehavior withSpinnerColor(String color)
Sets the color for the spinner
color - The color for the spinnerthis, for chainingpublic LaddaBehavior withSpinnerSize(int size)
Sets the size of the spinner in pixels
size - The size of the spinner in pixelsthis, for chainingpublic void onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
onComponentTag in class org.apache.wicket.behavior.Behaviorpublic void renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class org.apache.wicket.behavior.BehaviorCopyright © 2011–2014 AgileCoders. All rights reserved.