fi.hut.tml.xsmiles.mlfc.xforms.dialog
Class DialogGUITest
java.lang.Object
fi.hut.tml.xsmiles.mlfc.xforms.dialog.DialogGUIDebug
fi.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
| 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 |
| 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 |
DialogGUITest
public DialogGUITest()
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