Java tutorial
/*----------------------------------------------------------------------------- * Copyright 2010 Civic Computing Ltd. * All rights reserved. * * This file is part of Content Control. * * Content Control is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Content Control is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Content Control. If not, see http://www.gnu.org/licenses/. * * Revision $Rev$ * Modified by $Author$ * Modified on $Date$ * * Changes: see the subversion log. *----------------------------------------------------------------------------- */ package ccc.client.gwt.core; import ccc.client.core.Timers; import com.google.gwt.user.client.Timer; /** * GWT implementation of the {@link Timers} API. * * @author Civic Computing Ltd. */ class GWTTimers implements Timers { /** {@inheritDoc} */ @Override public void scheduleRepeating(final Runnable r, final int periodMillis) { new Timer() { /** {@inheritDoc} */ @Override public void run() { r.run(); } }.scheduleRepeating(periodMillis); } }