Overview | Package | Class | Tree | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EngineListener
interface
for specific events associated with a Recognizer
.
A RecognizerListener
object is attached to and
removed from a Recognizer
by calls to the
addEngineListener
and removeEngineListener
methods (which Recognizer
inherits from the
Engine
interface).
The RecognizerAdapter
class provides a trivial
implementation of this interface.
Method Summary | |
void | changesCommitted(RecognizerEvent e)
A CHANGES_COMMITTED event has been issued as a
Recognizer changes from the SUSPENDED
state to the LISTENING state and resumed recognition.
|
void | focusGained(RecognizerEvent e)
FOCUS_GAINED event has been issued as a
Recognizer changes from the FOCUS_OFF
state to the FOCUS_ON state. |
void | focusLost(RecognizerEvent e)
FOCUS_LOST event has been issued as a
Recognizer changes from the FOCUS_ON
state to the FOCUS_OFF state. |
void | recognizerProcessing(RecognizerEvent e)
A RECOGNIZER_PROCESSING event has been issued
as a Recognizer changes from the LISTENING
state to the PROCESSING state.
|
void | recognizerSuspended(RecognizerEvent e)
A RECOGNIZER_SUSPENDED event has been issued as a
Recognizer changes from either the LISTENING
state or the PROCESSING state to the
SUSPENDED state.
|
Method Detail |
public void recognizerProcessing(RecognizerEvent e)
RECOGNIZER_PROCESSING
event has been issued
as a Recognizer
changes from the LISTENING
state to the PROCESSING
state.
public void recognizerSuspended(RecognizerEvent e)
RECOGNIZER_SUSPENDED
event has been issued as a
Recognizer
changes from either the LISTENING
state or the PROCESSING
state to the
SUSPENDED
state.
A Result
finalization event (either a
RESULT_ACCEPTED
or RESULT_REJECTED
event)
is issued immediately following the RECOGNIZER_SUSPENDED
event.
public void changesCommitted(RecognizerEvent e)
CHANGES_COMMITTED
event has been issued as a
Recognizer
changes from the SUSPENDED
state to the LISTENING
state and resumed recognition.
The GRAMMAR_CHANGES_COMMITTED
event is issued
to the GrammarListeners
of all changed grammars
immediately following the CHANGES_COMMITTED
event.
public void focusGained(RecognizerEvent e)
FOCUS_GAINED
event has been issued as a
Recognizer
changes from the FOCUS_OFF
state to the FOCUS_ON
state. A
FOCUS_GAINED
event typically follows
a call to requestFocus
on a Recognizer
.
The GRAMMAR_ACTIVATED
event is issued
to the GrammarListeners
of all activated grammars
immediately following this RecognizerEvent
.
public void focusLost(RecognizerEvent e)
FOCUS_LOST
event has been issued as a
Recognizer
changes from the FOCUS_ON
state to the FOCUS_OFF
state. A
FOCUS_LOST
event may follow
a call to releaseFocus
on a Recognizer
or follow a request for focus by another application.
The GRAMMAR_DEACTIVATED
event is issued
to the GrammarListeners
of all deactivated grammars
immediately following this RecognizerEvent
.
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