anl.aida.client.gui
Class AIDAGui.SearchWorker
java.lang.Object
javax.swing.SwingWorker<java.util.List<anl.aida.core.DocumentID>,java.lang.Object>
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 classes/interfaces inherited from class javax.swing.SwingWorker |
javax.swing.SwingWorker.StateValue |
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 |
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
AIDAGui.SearchWorker
AIDAGui.SearchWorker(java.lang.String query,
DocumentsModel model,
ProgressLayer pLayer)
throws java.io.IOException
- Throws:
java.io.IOException
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>