ewe.io
Class CopyOver

java.lang.Object
  extended byewe.sys.TaskObject
      extended byewe.io.CopyOver
All Implemented Interfaces:
Runnable, Task

public class CopyOver
extends TaskObject

This class will copy multiple source files to multiple destination files.


Field Summary
 boolean alwaysContinue
           
 boolean alwaysStop
           
 File destDirectory
           
protected  String[] destFiles
           
 String displayTitle
           
 boolean doCopySubdirectoryContents
           
 boolean doMove
           
 boolean dontCopySubdirectoryContents
           
static int IDALWAYS_CONTINUE
           
static int IDALWAYS_NO
           
static int IDALWAYS_YES
           
 boolean makeCopies
           
 boolean noToAll
           
 Frame parentFrame
           
 boolean shouldStop
           
 File sourceDirectory
           
 String[] sourceFiles
           
 boolean yesToAll
           
 
Fields inherited from class ewe.sys.TaskObject
handle, interruptThreadToStop, myThread, napIterations, napTime
 
Constructor Summary
CopyOver()
           
 
Method Summary
static int continueOp(Frame parentFrame, String op, String file)
           
 void doRun()
          Override this method if you want to use an mThread to run your Task.
protected  void error(String err)
           
 boolean execute(Frame parent, StringBuffer error)
           
static String getFileInfo(File f)
           
static boolean getFiles(File f, String name, Vector addTo, Handle handle)
           
 Handle runWithProgressDisplay()
           
static int yesNo(Frame parentFrame, String theTitle, String theMessage)
           
 
Methods inherited from class ewe.sys.TaskObject
checkAbortFail, checkFailure, doStart, doStop, exec, getHandle, nap, run, setNapTime, show, sleep, start, startTask, stopTask, waitOn, waitOnAny, waitOnSuccess, yield, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

displayTitle

public String displayTitle

sourceDirectory

public File sourceDirectory

destDirectory

public File destDirectory

sourceFiles

public String[] sourceFiles

shouldStop

public boolean shouldStop

doMove

public boolean doMove

yesToAll

public boolean yesToAll

noToAll

public boolean noToAll

alwaysContinue

public boolean alwaysContinue

alwaysStop

public boolean alwaysStop

makeCopies

public boolean makeCopies

dontCopySubdirectoryContents

public boolean dontCopySubdirectoryContents

doCopySubdirectoryContents

public boolean doCopySubdirectoryContents

parentFrame

public Frame parentFrame

IDALWAYS_YES

public static final int IDALWAYS_YES
See Also:
Constant Field Values

IDALWAYS_NO

public static final int IDALWAYS_NO
See Also:
Constant Field Values

IDALWAYS_CONTINUE

public static final int IDALWAYS_CONTINUE
See Also:
Constant Field Values

destFiles

protected String[] destFiles
Constructor Detail

CopyOver

public CopyOver()
Method Detail

yesNo

public static int yesNo(Frame parentFrame,
                        String theTitle,
                        String theMessage)

continueOp

public static int continueOp(Frame parentFrame,
                             String op,
                             String file)

getFileInfo

public static String getFileInfo(File f)

error

protected void error(String err)

getFiles

public static boolean getFiles(File f,
                               String name,
                               Vector addTo,
                               Handle handle)

doRun

public void doRun()
Description copied from class: TaskObject
Override this method if you want to use an mThread to run your Task. Otherwise if you are using timers or callbacks, override the doStart() method.

Overrides:
doRun in class TaskObject

runWithProgressDisplay

public Handle runWithProgressDisplay()

execute

public boolean execute(Frame parent,
                       StringBuffer error)