@@ -0,0 +1,1372 @@
+package de.alpharogroup.wicket.behaviors.animations;%0A%0Aimport org.apache.wicket.Component;%0Aimport org.apache.wicket.ajax.AjaxRequestTarget;%0A%0Aimport de.alpharogroup.wicket.behaviors.DisplayNoneBehavior;%0A%0A/**%0A * The class %7B@link Animate%7D is an extension for add animation to components.%0A */%0Apublic class Animate%0A%7B%0A%0A%09/**%0A%09 * Replace the given component with animation.%0A%09 *%0A%09 * @param target%0A%09 *            the target%0A%09 * @param component%0A%09 *            the component%0A%09 */%0A%09public static void slideUpAndDown(final Component component, final AjaxRequestTarget target )%0A%09%7B%0A%09%09Animate.slideUpAndDown(component, target, 400, 400);%0A%09%7D%0A%0A%09/**%0A%09 * Replace the given component with animation.%0A%09 *%0A%09 * @param target%0A%09 *            the target%0A%09 * @param component%0A%09 *            the component%0A%09 * @param slideUpDuration%0A%09 *            the slide up duration%0A%09 * @param slideDownDuration%0A%09 *            the slide down duration%0A%09 */%0A%09public static void slideUpAndDown(final Component component, final AjaxRequestTarget target, %0A%09%09int slideUpDuration, int slideDownDuration)%0A%09%7B%0A%09%09component.add(new DisplayNoneBehavior());%0A%09%09target.prependJavaScript(%22notify%7CjQuery('#%22 + component.getMarkupId() + %22').slideUp(%22%0A%09%09%09+ slideUpDuration + %22, notify);%22);%0A%09%09target.add(component);%0A%09%09target.appendJavaScript(%0A%09%09%09%22jQuery('#%22 + component.getMarkupId() + %22').slideDown(%22 + slideDownDuration + %22);%22);%0A%09%7D%0A%7D%0A

Create Animate.java