Building Parsers with Java

sjm.examples.query
Class JaqlMediator

java.lang.Object
  |
  +--sjm.examples.query.JaqlMediator

public class JaqlMediator
extends java.lang.Object
implements java.awt.event.ActionListener

This class controls the interaction of the visual components in a JaqlUe.

See Also:
JaqlUe

Field Summary
protected  ChipSource chipSource
           
protected  javax.swing.JButton clearButton
           
protected  javax.swing.JButton goButton
           
protected  javax.swing.JTextArea metadataArea
           
protected  Parser parser
           
protected  javax.swing.JTextArea queryArea
           
protected  javax.swing.JTextArea resultArea
           
protected  Speller speller
           
 
Constructor Summary
JaqlMediator()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Parse the input as a query, prove it repeatedly, and show its results.
protected  void actionPerformedUnsafe(java.awt.event.ActionEvent e)
           
protected  ChipSource chipSource()
           
 void initialize(javax.swing.JButton goButton, javax.swing.JButton clearButton, javax.swing.JTextArea queryArea, javax.swing.JTextArea resultArea, javax.swing.JTextArea metadataArea)
          Initialize this object, using the components of a JaqlUe.
protected  Assembly parseInput()
           
protected  Parser parser()
           
protected  void showResults(Query q)
           
protected  Speller speller()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

goButton

protected javax.swing.JButton goButton

clearButton

protected javax.swing.JButton clearButton

metadataArea

protected javax.swing.JTextArea metadataArea

queryArea

protected javax.swing.JTextArea queryArea

resultArea

protected javax.swing.JTextArea resultArea

parser

protected Parser parser

chipSource

protected ChipSource chipSource

speller

protected Speller speller
Constructor Detail

JaqlMediator

public JaqlMediator()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Parse the input as a query, prove it repeatedly, and show its results.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

actionPerformedUnsafe

protected void actionPerformedUnsafe(java.awt.event.ActionEvent e)

chipSource

protected ChipSource chipSource()

initialize

public void initialize(javax.swing.JButton goButton,
                       javax.swing.JButton clearButton,
                       javax.swing.JTextArea queryArea,
                       javax.swing.JTextArea resultArea,
                       javax.swing.JTextArea metadataArea)
Initialize this object, using the components of a JaqlUe.

parseInput

protected Assembly parseInput()

parser

protected Parser parser()

showResults

protected void showResults(Query q)

speller

protected Speller speller()

by Steve Metsker