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

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.dialog.BaseSpeechWidget
      extended byfi.hut.tml.xsmiles.mlfc.xforms.dialog.IntegerSpeechWidget
All Implemented Interfaces:
SpeechWidget
Direct Known Subclasses:
IntegerOutputWidget

public class IntegerSpeechWidget
extends BaseSpeechWidget

Author:
mpohja

Field Summary
 
Fields inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dialog.BaseSpeechWidget
currentSelectionString, element, focusHandler
 
Constructor Summary
IntegerSpeechWidget(org.w3c.dom.Element e, FocusHandler handler)
           
 
Method Summary
 java.lang.String generateDialogQuestion()
           
 void generateGrammar(Grammar grammar)
           
 java.lang.String getPrompt()
          static prompt for this kind of control, for instance, "select a number"
 boolean interpretResponse(Response r)
           
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.xforms.dialog.BaseSpeechWidget
approximateResponse, determineHTMLElementLabel, findLabelHeuristically, getCurrentValue, getElement, getLabel, getLabel, getLabelForRepeatItem, getLabelForSpeaking, getLabelForSpeaking, getValueAsString, moveFocusToParent, removeNonAlphanumeric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerSpeechWidget

public IntegerSpeechWidget(org.w3c.dom.Element e,
                           FocusHandler handler)
Parameters:
e -
handler -
Method Detail

generateDialogQuestion

public java.lang.String generateDialogQuestion()
Specified by:
generateDialogQuestion in interface SpeechWidget
Overrides:
generateDialogQuestion in class BaseSpeechWidget

getPrompt

public java.lang.String getPrompt()
static prompt for this kind of control, for instance, "select a number"

Overrides:
getPrompt in class BaseSpeechWidget

generateGrammar

public void generateGrammar(Grammar grammar)
Specified by:
generateGrammar in interface SpeechWidget
Overrides:
generateGrammar in class BaseSpeechWidget

interpretResponse

public boolean interpretResponse(Response r)
Specified by:
interpretResponse in interface SpeechWidget
Overrides:
interpretResponse in class BaseSpeechWidget


X-Smiles 1.2