, a XQEngine client application that posts a simple two-panel Swing dialog.
Queries entered in the top panel return ResultList
objects
in the bottom panel, as well as writing either serialized XML or debug information to the console.
- Version:
- 0.66
- Author:
- Howard Katz, howardk@fatdog.com
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent event)
|
void |
changedUpdate(javax.swing.event.DocumentEvent docEvent)
|
javax.swing.JTextArea |
display()
|
void |
doReligion(XQEngine engine,
java.lang.String dir)
|
void |
indexShakespeare(XQEngine xmlEngine,
java.lang.String dir,
int n)
|
void |
insertUpdate(javax.swing.event.DocumentEvent docEvent)
|
static void |
main(java.lang.String[] args)
|
javax.swing.JPanel |
makeTextPanels(javax.swing.JTextArea queryArea,
javax.swing.JTextArea resultsArea)
|
static void |
mouseClickToGo(java.lang.String title,
int x,
int y,
int w,
int h)
|
static void |
mouseClickWindow(java.lang.String title,
int x,
int y,
int w,
int h)
|
void |
removeUpdate(javax.swing.event.DocumentEvent docEvent)
|
void |
results(java.lang.String xmlOutput)
|
void |
run()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleApp
public SampleApp()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run()
throws java.lang.Exception
- Throws:
java.lang.Exception
doReligion
public void doReligion(XQEngine engine,
java.lang.String dir)
throws java.io.FileNotFoundException,
CantParseDocumentException,
MissingOrInvalidSaxParserException
- Throws:
java.io.FileNotFoundException
CantParseDocumentException
MissingOrInvalidSaxParserException
indexShakespeare
public void indexShakespeare(XQEngine xmlEngine,
java.lang.String dir,
int n)
throws java.io.FileNotFoundException,
CantParseDocumentException,
MissingOrInvalidSaxParserException
- Throws:
java.io.FileNotFoundException
CantParseDocumentException
MissingOrInvalidSaxParserException
results
public void results(java.lang.String xmlOutput)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
display
public javax.swing.JTextArea display()
makeTextPanels
public javax.swing.JPanel makeTextPanels(javax.swing.JTextArea queryArea,
javax.swing.JTextArea resultsArea)
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent docEvent)
- Specified by:
removeUpdate
in interface javax.swing.event.DocumentListener
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent docEvent)
- Specified by:
changedUpdate
in interface javax.swing.event.DocumentListener
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent docEvent)
- Specified by:
insertUpdate
in interface javax.swing.event.DocumentListener
mouseClickToGo
public static void mouseClickToGo(java.lang.String title,
int x,
int y,
int w,
int h)
mouseClickWindow
public static void mouseClickWindow(java.lang.String title,
int x,
int y,
int w,
int h)