bass.suggestion
Class SearchThread

java.lang.Object
  extended by java.lang.Thread
      extended by bass.suggestion.SearchThread
All Implemented Interfaces:
java.lang.Runnable

public class SearchThread
extends java.lang.Thread

Simple Thread for starting searchs in another thread, so the gui isn't blocked while searching

Version:
0.1
Author:
Thomas Klein

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean exactSearch
           
private  SearchDialog sDialog
           
private  java.lang.String searchString
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SearchThread(SearchDialog sDialog, java.lang.String searchString, boolean exactSearch)
          creates a new object with the specified data
 
Method Summary
 void run()
           
 
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
 

Field Detail

sDialog

private SearchDialog sDialog

searchString

private java.lang.String searchString

exactSearch

private boolean exactSearch
Constructor Detail

SearchThread

public SearchThread(SearchDialog sDialog,
                    java.lang.String searchString,
                    boolean exactSearch)
creates a new object with the specified data

Parameters:
sDialog - the reference to the parent search gui
searchString - the string to search for
Method Detail

run

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