public synchronized void cancelAll(){
  for (  TaskProgress progress : taskInfo)   progress.setCancelled(true);
}

public synchronized void cancelAll ( ) { for ( TaskProgress progress : taskInfo ) progress . setCancelled ( true ) ; }
signal that all tasks have been cancelled .
