org.pentaho.di.ui.spoon.trans
Class DelayTimer

java.lang.Object
  extended by org.pentaho.di.ui.spoon.trans.DelayTimer
All Implemented Interfaces:
Runnable

public class DelayTimer
extends Object
implements Runnable

A timer where you can attach a timer to. Once the time is up, the listeners are fired off.

Author:
matt

Constructor Summary
DelayTimer(int delayInMiliseconds)
           
DelayTimer(int delayInMilliseconds, DelayListener delayListener)
           
 
Method Summary
 void addDelayListener(DelayListener delayListener)
           
 int getDelayInMilliseconds()
           
 void reset()
           
 void run()
           
 void setDelayInSeconds(int delayInMilliseconds)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayTimer

public DelayTimer(int delayInMiliseconds)

DelayTimer

public DelayTimer(int delayInMilliseconds,
                  DelayListener delayListener)
Method Detail

reset

public void reset()

run

public void run()
Specified by:
run in interface Runnable

stop

public void stop()

addDelayListener

public void addDelayListener(DelayListener delayListener)

getDelayInMilliseconds

public int getDelayInMilliseconds()
Returns:
the delay in milliseconds

setDelayInSeconds

public void setDelayInSeconds(int delayInMilliseconds)
Parameters:
delayInMilliseconds - the delay in milliseconds to set