Mp3dings 
20100427

net.sourceforge.mp3dings.utils
Class FileCopyRunnable

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

public class FileCopyRunnable
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
FileCopyRunnable(File dest, File[] src)
           
 
Method Summary
 void finished()
          Should be overwritten.
 int getFilesCopied()
          Returns the number of files copied so far.
 StatusBar getStatusBar()
          Returns the StatusBar in which this FileCopyRunnable displays its status messages.
 int getTotalFiles()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCopyRunnable

public FileCopyRunnable(File dest,
                        File[] src)
Method Detail

getStatusBar

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


getFilesCopied

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


getTotalFiles

public int getTotalFiles()

run

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

finished

public void finished()
Should be overwritten.


Mp3dings 
20100427