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 void
doWork()
java.io.File
getDirectory()
boolean
isIgnoreNotExistingDirectories()
Returns true if not existing directories should be ignored instead of throwing an error.void
open()
void
setDirectory(java.io.File directory)
void
setIgnoreNotExistingDirectories(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:
open
in interfaceWorker
- Overrides:
open
in classProgressWorker
- Throws:
WorkerException
-
doWork
public void doWork() throws WorkerException
- Overrides:
doWork
in classProgressWorker
- Throws:
WorkerException
-
getDirectory
public java.io.File getDirectory()
-
setDirectory
public void setDirectory(java.io.File directory)
-
-