Mp3dings 
20100427

net.sourceforge.mp3dings.utils
Class ImageSaveRunnable

java.lang.Object
  extended by net.sourceforge.mp3dings.utils.ImageSaveRunnable
All Implemented Interfaces:
Runnable

public class ImageSaveRunnable
extends Object
implements Runnable

This class copies files in a background thread. Progress is indicated in a Status Bar. In case of an exception file copying is suspended and the user is asked what to do in a JDialog. If the Status Bar is part of a container hierarchy the error dialog will be owned by the window ancestor of the Status bar.


Constructor Summary
ImageSaveRunnable(File dest, File[] src, APICImage[] img)
           
 
Method Summary
 void finished()
          Should be overwritten.
 int getImagesSaved()
          Returns the number of files copied so far.
 StatusBar getStatusBar()
          Returns the StatusBar in which this FileCopyRunnable displays its status messages.
 int getTotalImages()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageSaveRunnable

public ImageSaveRunnable(File dest,
                         File[] src,
                         APICImage[] img)
Method Detail

run

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

getStatusBar

public StatusBar getStatusBar()
Returns the StatusBar in which this FileCopyRunnable displays its status messages.


getImagesSaved

public int getImagesSaved()
Returns the number of files copied so far.


getTotalImages

public int getTotalImages()

finished

public void finished()
Should be overwritten.


Mp3dings 
20100427