Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Using a scheduler to repeat a simple task

    Hi there,
    I am using smart gwt 2.2 and firefox.
    Just need to have a simple Scheduler to repeat a task for example every 30 seconds.
    Tried to used gwt Scheduler class and it works. This is the code:
    Code:
     
    	
    	private final class LoadAlarmGrid implements RepeatingCommand{		
    		public boolean execute() {			
    			updateAlarmsGrid();
    			return true;
    		}		
    	}
    
           Scheduler.get().scheduleFixedPeriod(new LoadAlarmGrid(), 30000);
    Would anyone know how to stop the scheduler?

    Thank you.

    #2
    This is a GWT question not specific to Smart GWT and I see you've already asked it on the GWT forums.

    Comment

    Working...
    X