Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface javax.speech.recognition.RecognizerListener

Implementing Classes:
RecognizerAdapter

public abstract interface RecognizerListener
extends EngineListener
Defines an extension to the 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.

See Also:
RecognizerAdapter, RecognizerEvent, Recognizer, Engine, addEngineListener, removeEngineListener

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

recognizerProcessing

public void recognizerProcessing(RecognizerEvent e)
A RECOGNIZER_PROCESSING event has been issued as a Recognizer changes from the LISTENING state to the PROCESSING state.

See Also:
RECOGNIZER_PROCESSING

recognizerSuspended

public 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.

A Result finalization event (either a RESULT_ACCEPTED or RESULT_REJECTED event) is issued immediately following the RECOGNIZER_SUSPENDED event.

See Also:
RECOGNIZER_SUSPENDED

changesCommitted

public 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.

The GRAMMAR_CHANGES_COMMITTED event is issued to the GrammarListeners of all changed grammars immediately following the CHANGES_COMMITTED event.

See Also:
CHANGES_COMMITTED, GRAMMAR_CHANGES_COMMITTED

focusGained

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.

See Also:
FOCUS_GAINED, GRAMMAR_ACTIVATED, requestFocus

focusLost

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.

See Also:
FOCUS_LOST, GRAMMAR_DEACTIVATED, releaseFocus

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