public class AsynchronousLookupEngine extends LookupEngine
dictionaryEntryLimit, handler
Constructor and Description |
---|
AsynchronousLookupEngine(LookupResultHandler _handler) |
AsynchronousLookupEngine(LookupResultHandler _handler,
int _dictionaryEntryLimit) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
doLookup(LookupModel model) |
void |
doLookup(LookupModel model,
Runnable runAfterLookup)
Initiate a new lookup, which will be performed in its own thread.
|
protected void |
finalize() |
getHandler
public AsynchronousLookupEngine(LookupResultHandler _handler)
public AsynchronousLookupEngine(LookupResultHandler _handler, int _dictionaryEntryLimit)
public void doLookup(LookupModel model)
doLookup
in class LookupEngine
public void doLookup(LookupModel model, Runnable runAfterLookup)
runAfterLookup
- if != null
, this runnable will be executed in the
lookup thread after the search is completed. If the search is interrupted,
the runnable will not be executed. It is possible to schedule a new lookup from
the runnable.public void dispose()
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.