Package ipsk.io
Class DeleteDirectoryWorker
- java.lang.Object
-
- ipsk.awt.ProgressWorker
-
- ipsk.io.DeleteDirectoryWorker
-
- All Implemented Interfaces:
Worker,ProgressUpdate,java.lang.Runnable
public class DeleteDirectoryWorker extends ProgressWorker
Deletes directory structure in a worker- Author:
- klausj
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ipsk.awt.ProgressWorker
ProgressWorker.ProgressEventTransferAgent
-
Nested classes/interfaces inherited from interface ipsk.awt.Worker
Worker.State
-
-
Field Summary
-
Fields inherited from class ipsk.awt.ProgressWorker
generateEvents, progressEventTransferAgent, progressStatus, task, thread, threadName
-
-
Constructor Summary
Constructors Constructor Description DeleteDirectoryWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoWork()java.io.FilegetDirectory()booleanisIgnoreNotExistingDirectories()Returns true if not existing directories should be ignored instead of throwing an error.voidopen()voidsetDirectory(java.io.File directory)voidsetIgnoreNotExistingDirectories(boolean ignoreNotExistingDirectories)Set to true if not existing directories should be ignored instead of throwing an error.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class ipsk.awt.ProgressWorker
addProgressListener, cancel, close, fireProgressEvent, fireProgressEvent, getProgressStatus, getStatus, getTask, hasCancelRequest, removeProgressListener, reset, run, setRunningWithParentWorker, setTask, start
-
-
-
-
Method Detail
-
isIgnoreNotExistingDirectories
public boolean isIgnoreNotExistingDirectories()
Returns true if not existing directories should be ignored instead of throwing an error. Default is false.- Returns:
- the ignoreNotExistingDirectories
-
setIgnoreNotExistingDirectories
public void setIgnoreNotExistingDirectories(boolean ignoreNotExistingDirectories)
Set to true if not existing directories should be ignored instead of throwing an error. Default is false.- Parameters:
ignoreNotExistingDirectories- the ignoreNotExistingDirectories to set
-
open
public void open() throws WorkerException- Specified by:
openin interfaceWorker- Overrides:
openin classProgressWorker- Throws:
WorkerException
-
doWork
public void doWork() throws WorkerException- Overrides:
doWorkin classProgressWorker- Throws:
WorkerException
-
getDirectory
public java.io.File getDirectory()
-
setDirectory
public void setDirectory(java.io.File directory)
-
-