| Overview | Package | Class | Tree | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
GrammarListener receives notifications
of status change events for a Grammar.
A GrammarListener is attached to and removed
from a Grammar with its addGrammarListener
and removeGrammarListener methods.
Multiple grammars can share a GrammarListener object
and one grammar can have multiple
GrammarListener objects attached.
The GrammarAdapter provides a trivial implementation
of this class.
| Method Summary | |
| void | grammarActivated(GrammarEvent e)
A GRAMMAR_ACTIVATED event is issued when a
grammar changes from deactivated to activated.
|
| void | grammarChangesCommitted(GrammarEvent e)
A GRAMMAR_CHANGES_COMMITTED event is issued when a
Recognizer has
committed changes to a Grammar.
|
| void | grammarDeactivated(GrammarEvent e)
A GRAMMAR_DEACTIVATED event is issued when a
grammar changes from activated to deactivated.
|
| Method Detail |
public void grammarChangesCommitted(GrammarEvent e)
GRAMMAR_CHANGES_COMMITTED event is issued when a
Recognizer has
committed changes to a Grammar.
The GRAMMAR_CHANGES_COMMITTED immediately follows
the CHANGES_COMMITTED event issued to
RecognizerListeners after changes to all
grammars have been committed. The circumstances in which
changes are committed
are described in the documentation for Grammar.
public void grammarActivated(GrammarEvent e)
GRAMMAR_ACTIVATED event is issued when a
grammar changes from deactivated to activated.
public void grammarDeactivated(GrammarEvent e)
GRAMMAR_DEACTIVATED event is issued when a
grammar changes from activated to deactivated.
| Overview | Package | Class | Tree | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com