fi.hut.tml.xsmiles.mlfc.xforms.dialog
Class DialogGUITest

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.dialog.DialogGUIDebug
      extended byfi.hut.tml.xsmiles.mlfc.xforms.dialog.DialogGUITest
All Implemented Interfaces:
java.awt.event.ActionListener, DialogUI, java.util.EventListener, XRecognizerListener

public class DialogGUITest
extends DialogGUIDebug
implements DialogUI, java.awt.event.ActionListener

This creates an additional Dialog UI layer on top of an XForms document. It is possible to operate thee Dialog UI with a voice recognizer and voice output for instance

Author:
honkkis

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dialog.DialogGUIDebug
answerInput, bottomPanel, buttonPanel, cfactory, frame, installButton, listeners, mainPanel, questionArea, recCompound, recognizer, recSelect, speakButton, speechCompound, speechSelect, statusLabel, stopButton, synth, topPanel
 
Fields inherited from interface fi.hut.tml.xsmiles.speech.XRecognizerListener
statusIdle, statusInitializing, statusRecognizing
 
Constructor Summary
DialogGUITest()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent arg0)
           
protected  void answerGiven(java.lang.String answer)
           
protected  int countDateTokens(java.lang.String s)
           
protected  void fireEvent(java.awt.event.ActionEvent e)
           
static DialogGUIDebug getInstance(ComponentFactory f)
           
static void main(java.lang.String[] args)
           
protected  java.util.Calendar parseDate(java.lang.String s, java.util.Calendar origDate)
           
 void showQuestion(java.lang.String question, java.io.Reader grammar)
           
protected  void speakButtonPressed()
           
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dialog.DialogGUIDebug
addActionListener, append, createListeners, destroy, enableRecognizer, enableSpeech, getComponentFactory, registerKeyboardAction, removeActionListener, resultEvent, setComponentFactory, setGrammar, showDialog, speak, speakButtonPressedSync, start, statusChange, stopAll, stopButtonPressed, stopRecognizer, stopSpeech
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fi.hut.tml.xsmiles.mlfc.xforms.dialog.DialogUI
addActionListener, append, destroy, removeActionListener, setGrammar, stopAll, stopRecognizer, stopSpeech
 

Constructor Detail

DialogGUITest

public DialogGUITest()
Method Detail

getInstance

public static DialogGUIDebug getInstance(ComponentFactory f)

main

public static void main(java.lang.String[] args)

speakButtonPressed

protected void speakButtonPressed()
Overrides:
speakButtonPressed in class DialogGUIDebug

showQuestion

public void showQuestion(java.lang.String question,
                         java.io.Reader grammar)
Specified by:
showQuestion in interface DialogUI
Overrides:
showQuestion in class DialogGUIDebug

fireEvent

protected void fireEvent(java.awt.event.ActionEvent e)
Overrides:
fireEvent in class DialogGUIDebug

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent arg0)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class DialogGUIDebug

parseDate

protected java.util.Calendar parseDate(java.lang.String s,
                                       java.util.Calendar origDate)

countDateTokens

protected int countDateTokens(java.lang.String s)

answerGiven

protected void answerGiven(java.lang.String answer)


X-Smiles 1.2