modnlp.tec.client
public class ConcordanceThread extends java.lang.Object implements java.lang.Runnable, ConcordanceMonitor
Runnable
rather than extends
java.lang.Thread
.
Constructor and Description |
---|
ConcordanceThread(ConcordanceVector clm,
java.io.BufferedReader in,
TecClientRequest cr) |
ConcordanceThread(ConcordanceVector clm,
TecClientRequest cr)
Starts a new connection and performs a request to
be displayed in the
ListDisplay provided. |
Modifier and Type | Method and Description |
---|---|
void |
addConcordanceDisplayListener(ConcordanceDisplayListener cdl)
Set listDisplay as a concordance display listener (that is, an object
which will be notified of changes in the concordance list via, e.g.,
|
boolean |
atWork() |
int |
getNoFound() |
int |
getNoRead() |
boolean |
getServerResponded() |
void |
removeConcordanceDisplayListener(ConcordanceDisplayListener cdl) |
void |
run() |
void |
setEncoding(java.lang.String e) |
void |
start() |
void |
stop() |
public ConcordanceThread(ConcordanceVector clm, TecClientRequest cr)
ListDisplay
provided.server
- The default server to which we'll connectupd
- The ListDisplay to updatech
- The request to be passed on to server
public ConcordanceThread(ConcordanceVector clm, java.io.BufferedReader in, TecClientRequest cr)
public void setEncoding(java.lang.String e)
public void run()
run
in interface java.lang.Runnable
public void start()
public void stop()
public final boolean atWork()
public final int getNoFound()
public final int getNoRead()
public final boolean getServerResponded()
public void addConcordanceDisplayListener(ConcordanceDisplayListener cdl)
ConcordanceMonitor
addConcordanceDisplayListener
in interface ConcordanceMonitor
public void removeConcordanceDisplayListener(ConcordanceDisplayListener cdl)
removeConcordanceDisplayListener
in interface ConcordanceMonitor