anl.aida.client.gui
Class AIDAGui.SearchWorker

java.lang.Object
  extended by javax.swing.SwingWorker<java.util.List<anl.aida.core.DocumentID>,java.lang.Object>
      extended by anl.aida.client.gui.AIDAGui.SearchWorker
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future<java.util.List<anl.aida.core.DocumentID>>, java.util.concurrent.RunnableFuture<java.util.List<anl.aida.core.DocumentID>>
Enclosing class:
AIDAGui

 class AIDAGui.SearchWorker
extends javax.swing.SwingWorker<java.util.List<anl.aida.core.DocumentID>,java.lang.Object>

SwingWorker that does the lucence search in a background thread


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Field Summary
private  CacheElement element
           
private  org.apache.lucene.search.Filter filter
           
private  ProgressLayer pLayer
           
private  java.lang.String query
           
private  LuceneSearcher searcher
           
 
Constructor Summary
AIDAGui.SearchWorker(java.lang.String query, DocumentsModel model, ProgressLayer pLayer)
           
 
Method Summary
protected  java.util.List<anl.aida.core.DocumentID> doInBackground()
           
protected  void done()
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searcher

private LuceneSearcher searcher

query

private java.lang.String query

filter

private org.apache.lucene.search.Filter filter

pLayer

private ProgressLayer pLayer

element

private CacheElement element
Constructor Detail

AIDAGui.SearchWorker

AIDAGui.SearchWorker(java.lang.String query,
                     DocumentsModel model,
                     ProgressLayer pLayer)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

doInBackground

protected java.util.List<anl.aida.core.DocumentID> doInBackground()
                                                           throws java.lang.Exception
Specified by:
doInBackground in class javax.swing.SwingWorker<java.util.List<anl.aida.core.DocumentID>,java.lang.Object>
Throws:
java.lang.Exception

done

protected void done()
Overrides:
done in class javax.swing.SwingWorker<java.util.List<anl.aida.core.DocumentID>,java.lang.Object>