modnlp.tec.client
public class Browser extends java.lang.Object implements ConcordanceBrowser, ConcordanceDisplayListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RELEASE |
static java.lang.String |
REVISION |
Constructor and Description |
---|
Browser(boolean sa) |
Browser(java.lang.String sp) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(StateChanged toAdd) |
void |
chooseNewLocalCorpus() |
void |
chooseNewRemoteCorpus() |
void |
concordanceChanged(ConcordanceDisplayEvent e)
Event raised (typically by a ConcordanceMonitor) to indicate
that a concordance list has changed in a way that requires
its displayed form to be updated.
|
void |
concordanceChanged(ConcordanceListSizeEvent e) |
void |
dismissProgress() |
void |
downloadConcordance(Download dlf) |
java.lang.String |
getBrand() |
BrowserGUI |
getBrowserGUI() |
java.lang.String |
getBrowserName() |
ClientProperties |
getClientProperties() |
ConcordanceThread |
getConcordanceThread() |
ConcordanceVector |
getConcordanceVector() |
Dictionary |
getDictionary() |
int |
getExpectedNoOfConcordances() |
HeaderDBManager |
getHeaderDBManager() |
java.lang.String |
getKeywordString() |
int |
getLanguage() |
int |
getNoOfConcordancesReadSoFar() |
int |
getPreferredFontSize() |
java.lang.String |
getRelease() |
int |
getRemotePort() |
java.lang.String |
getRemoteServer() |
java.lang.String |
getVersion() |
java.lang.String |
getXQueryWhere() |
boolean |
gotResponseFromServer() |
void |
incProgress() |
void |
initialCorpusSelection() |
boolean |
isCaseSensitive() |
boolean |
isReceivingFromServer() |
boolean |
isSorting() |
boolean |
isStandAlone() |
boolean |
isSubCorpusSelectionON() |
static void |
main(java.lang.String[] args) |
void |
quit() |
void |
requestConcordance(java.lang.String query) |
void |
setAdvConcFlag(boolean f) |
void |
setBrand(java.lang.String b) |
void |
setLocalCorpus(java.lang.String cdir) |
void |
setRemoteCorpus(java.lang.String s,
int p) |
void |
setStandAlone(boolean b) |
void |
setXQueryWhere(java.lang.String w) |
void |
showAbout() |
void |
showContext(int col,
java.lang.String str) |
void |
showErrorMessage(java.lang.String e) |
void |
showExtract(ConcordanceObject sel)
Show extract of text identified by position
sel
in the current ConcordanceVector |
void |
showHeader(ConcordanceObject sel)
Show header file of text identified by position
sel
in the current ConcordanceVector |
void |
showHeader(java.lang.String headerName) |
void |
showHelp() |
void |
showPreferencesEditor() |
void |
showSubcorpusSelector() |
void |
startSorting(int horizon,
boolean sortleft) |
boolean |
subCorpusSelected() |
boolean |
workOffline() |
public static final java.lang.String RELEASE
public static final java.lang.String REVISION
public void addChangeListener(StateChanged toAdd)
addChangeListener
in interface ConcordanceBrowser
public void quit()
quit
in interface ConcordanceBrowser
public ConcordanceThread getConcordanceThread()
public ConcordanceVector getConcordanceVector()
getConcordanceVector
in interface ConcordanceBrowser
public java.lang.String getKeywordString()
getKeywordString
in interface ConcordanceBrowser
public void setStandAlone(boolean b)
public boolean isStandAlone()
isStandAlone
in interface ConcordanceBrowser
public void incProgress()
incProgress
in interface ConcordanceBrowser
public void dismissProgress()
public void requestConcordance(java.lang.String query)
requestConcordance
in interface ConcordanceBrowser
public void showSubcorpusSelector()
showSubcorpusSelector
in interface ConcordanceBrowser
public void showContext(int col, java.lang.String str)
showContext
in interface ConcordanceBrowser
public void startSorting(int horizon, boolean sortleft)
startSorting
in interface ConcordanceBrowser
public void showPreferencesEditor()
showPreferencesEditor
in interface ConcordanceBrowser
public void showHelp()
showHelp
in interface ConcordanceBrowser
public void showAbout()
showAbout
in interface ConcordanceBrowser
public void showErrorMessage(java.lang.String e)
showErrorMessage
in interface ConcordanceBrowser
public void showExtract(ConcordanceObject sel)
sel
in the current ConcordanceVector
showExtract
in interface ConcordanceBrowser
ConcordanceVector
public void showHeader(ConcordanceObject sel)
sel
in the current ConcordanceVector
showHeader
in interface ConcordanceBrowser
ConcordanceVector
public void showHeader(java.lang.String headerName)
public void downloadConcordance(Download dlf) throws java.io.IOException
downloadConcordance
in interface ConcordanceBrowser
java.io.IOException
public int getPreferredFontSize()
getPreferredFontSize
in interface ConcordanceBrowser
public void setAdvConcFlag(boolean f)
setAdvConcFlag
in interface ConcordanceBrowser
public boolean isSubCorpusSelectionON()
isSubCorpusSelectionON
in interface ConcordanceBrowser
public boolean subCorpusSelected()
subCorpusSelected
in interface ConcordanceBrowser
public void chooseNewLocalCorpus()
chooseNewLocalCorpus
in interface ConcordanceBrowser
public int getLanguage()
getLanguage
in interface ConcordanceBrowser
public void setLocalCorpus(java.lang.String cdir)
public void chooseNewRemoteCorpus()
chooseNewRemoteCorpus
in interface ConcordanceBrowser
public void setRemoteCorpus(java.lang.String s, int p)
public boolean workOffline()
public void initialCorpusSelection()
public final void setXQueryWhere(java.lang.String w)
setXQueryWhere
in interface ConcordanceBrowser
public final java.lang.String getXQueryWhere()
getXQueryWhere
in interface ConcordanceBrowser
public final int getRemotePort()
getRemotePort
in interface ConcordanceBrowser
public final java.lang.String getRemoteServer()
getRemoteServer
in interface ConcordanceBrowser
public final Dictionary getDictionary()
getDictionary
in interface ConcordanceBrowser
public final ClientProperties getClientProperties()
getClientProperties
in interface ConcordanceBrowser
public final HeaderDBManager getHeaderDBManager()
getHeaderDBManager
in interface ConcordanceBrowser
public final int getExpectedNoOfConcordances()
getExpectedNoOfConcordances
in interface ConcordanceBrowser
public final int getNoOfConcordancesReadSoFar()
getNoOfConcordancesReadSoFar
in interface ConcordanceBrowser
public final boolean gotResponseFromServer()
gotResponseFromServer
in interface ConcordanceBrowser
public final boolean isReceivingFromServer()
isReceivingFromServer
in interface ConcordanceBrowser
public final boolean isCaseSensitive()
isCaseSensitive
in interface ConcordanceBrowser
public final boolean isSorting()
isSorting
in interface ConcordanceBrowser
public final void setBrand(java.lang.String b)
public final java.lang.String getBrand()
getBrand
in interface ConcordanceBrowser
public final java.lang.String getRelease()
getRelease
in interface ConcordanceBrowser
public final java.lang.String getVersion()
getVersion
in interface ConcordanceBrowser
public java.lang.String getBrowserName()
getBrowserName
in interface ConcordanceBrowser
public BrowserGUI getBrowserGUI()
getBrowserGUI
in interface ConcordanceBrowser
public static void main(java.lang.String[] args)
public void concordanceChanged(ConcordanceDisplayEvent e)
ConcordanceDisplayListener
concordanceChanged
in interface ConcordanceDisplayListener
e
- a concordance list eventpublic void concordanceChanged(ConcordanceListSizeEvent e)
concordanceChanged
in interface ConcordanceDisplayListener