com.joctopus.ui.joctopus
Class FileScannerHandler

java.lang.Object
  extended by java.lang.Thread
      extended by com.joctopus.ui.joctopus.FileScannerHandler
All Implemented Interfaces:
java.lang.Runnable

public class FileScannerHandler
extends java.lang.Thread

Controller for FileScanner, updates file information in filescanner dialog, and performs indepth scan of all files in selected directories.

Since:
1.0

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FileScannerHandler(ChatterHandler chatter, java.io.File[] fileBulk)
           
 
Method Summary
 void getFilesTillRoot(java.io.File folder, java.lang.String previousParent)
          Gets files till root of specified folder.
 FileScanner getScanner()
           
 void run()
           
 void startScan()
          starts scanning of listed directories.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileScannerHandler

public FileScannerHandler(ChatterHandler chatter,
                          java.io.File[] fileBulk)
Parameters:
chatter -
fileBulk -
Method Detail

getFilesTillRoot

public void getFilesTillRoot(java.io.File folder,
                             java.lang.String previousParent)
Gets files till root of specified folder.

Parameters:
folder -
previousParent -

startScan

public void startScan()
starts scanning of listed directories. 1.0 -> 1.1 BUG FIXES 1. once scan is started then it cannot be stopped.


run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getScanner

public FileScanner getScanner()
Returns:
FileScanner UI Object