@@ -0,0 +1,1842 @@
+/**%0A * Copyright (C) 2010 Asterios Raptis%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage de.alpharogroup.wicket.behaviors.events;%0A%0Aimport org.apache.wicket.Component;%0Aimport org.apache.wicket.ajax.AbstractAjaxTimerBehavior;%0Aimport org.apache.wicket.ajax.AjaxRequestTarget;%0Aimport org.apache.wicket.event.Broadcast;%0Aimport org.apache.wicket.util.time.Duration;%0A%0A/**%0A * The class %7B@link RefreshComponentAjaxTimerBehavior%7D can refresh components at a given regular%0A * interval. Components that wants to be notified have to implement the%0A * %7B@link Component#onEvent(org.apache.wicket.event.IEvent)%7D method and see if the payload is of%0A * Type %7B@link RefreshPayload%7D and refresh them selves.%0A */%0Apublic class RefreshComponentAjaxTimerBehavior extends AbstractAjaxTimerBehavior%0A%7B%0A%0A%09/** The constant serialVersionUID. */%0A%09private static final long serialVersionUID = 1L;%0A%0A%09/**%0A%09 * Instantiates a new %7B@link RefreshComponentAjaxTimerBehavior%7D behavior.%0A%09 *%0A%09 * @param updateInterval%0A%09 *            the update interval%0A%09 */%0A%09public RefreshComponentAjaxTimerBehavior(Duration updateInterval)%0A%09%7B%0A%09%09super(updateInterval);%0A%09%7D%0A%0A%09/**%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09protected void onTimer(AjaxRequestTarget target)%0A%09%7B%0A%09%09getComponent().send(getComponent().getPage(), Broadcast.DEPTH,%0A%09%09%09new RefreshPayload%3CVoid%3E(target));%0A%09%7D%0A%0A%7D%0A

Create RefreshComponentAjaxTimerBehavior.java