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

Class javax.speech.recognition.RecognizerAdapter

java.lang.Object
  |
  +--javax.speech.EngineAdapter
        |
        +--javax.speech.recognition.RecognizerAdapter

public class RecognizerAdapter
extends EngineAdapter
implements RecognizerListener
The adapter which receives events for a Recognizer. The methods in this class are empty; this class is provided as a convenience for easily creating listeners by extending this class and overriding only the methods of interest.


Method Summary
void changesCommitted(RecognizerEvent e)
          CHANGES_COMMITTED event has been issued as a Recognizer changes from the SUSPENDED state to the LISTENING state.
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)
          RECOGNIZER_SUSPENDED event has been issued as a Recognizer changes from either the LISTENING state or the PROCESSING state to the SUSPENDED state.
 
Methods inherited from class javax.speech.EngineAdapter
engineAllocated, engineAllocatingResources, engineDeallocated, engineDeallocatingResources, engineError, enginePaused, engineResumed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

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.

Specified by:
recognizerProcessing in interface RecognizerListener
See Also:
RECOGNIZER_PROCESSING

recognizerSuspended

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.

Specified by:
recognizerSuspended in interface RecognizerListener
See Also:
RECOGNIZER_SUSPENDED

changesCommitted

public void changesCommitted(RecognizerEvent e)
CHANGES_COMMITTED event has been issued as a Recognizer changes from the SUSPENDED state to the LISTENING state.

Following the CHANGES_COMMITTED event, a GRAMMAR_CHANGES_COMMITTED event is issued to the GrammarListeners of each grammar for which a change in its definition or its enabled flag has been committed.

Specified by:
changesCommitted in interface RecognizerListener
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.

Specified by:
focusGained in interface RecognizerListener
See Also:
FOCUS_GAINED

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.

Specified by:
focusLost in interface RecognizerListener
See Also:
FOCUS_LOST

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