/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */
package com.haulmont.cuba.gui.components;

/**
 * @author gorodnov
 * @version $Id$
 */
public interface Timer extends Component.HasXmlDescriptor, Component.BelongToFrame {

    boolean isRepeating();
    void setRepeating(boolean repeating);

    int getDelay();
    void setDelay(int delay);

    void start();
    void stop();

    void addTimerListener(TimerListener listener);
    void removeTimerListener(TimerListener listener);

    interface TimerListener {
        void onTimer(Timer timer);

        void onStopTimer(Timer timer);
    }
}
@@ -469,21 +469,168 @@
     
-void start();
+/**%0D%0A     * Starts timer. If timer is already started call wil be ingored.%0D%0A     */%0D%0A    void start();%0D%0A%0D%0A    /**%0D%0A     * Stops timer if it is running.%0D%0A     */
 %0D%0A  

Clarify timers behaviour - JavaDoc for start and stop methods #PL-3200