JSAPI 2.0

javax.speech.recognition
Interface GrammarListener

All Superinterfaces:
SpeechEventListener

public interface GrammarListener
extends SpeechEventListener

The listener interface for receiving notifications of status change events for a Grammar.

A GrammarListener is attached to and removed from a Grammar with the addGrammarListener and removeGrammarListener methods. Multiple Grammars can share a GrammarListener object and one Grammar can have multiple GrammarListener objects attached.

GrammarListeners may also be attached or removed from GrammarManagers in the same way.

GrammarListeners attached to a Grammar receive only GrammarEvents associated with that Grammar. GrammarListeners attached to a GrammarManager receive associated GrammarEvents for all managed Grammars.

See Also:
Grammar, GrammarEvent, addGrammarListener, removeGrammarListener, addGrammarListener, removeGrammarListener

Method Summary
 void grammarUpdate(GrammarEvent event)
          Method called back to indicate a Grammar update.
 

Method Detail

grammarUpdate

void grammarUpdate(GrammarEvent event)
Method called back to indicate a Grammar update.

Parameters:
event - the GrammarEvent
See Also:
GrammarEvent, Grammar

JSAPI 2.0

JavaTM Speech API 2.0, Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.

Free Web Hosting