|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultListener
The listener interface for ResultEvent
s associated
with a Result
.
A ResultListener
may be attached to any of three entities:
Result
: a ResultListener
attached to a Result
receives all events for that Result
starting
from the time at which the listener is attached.
It never receives a RESULT_CREATED
event because a listener
can only be attached to a Result
once a RESULT_CREATED
event has already been issued.
Grammar
: a ResultListener
attached to a Grammar
receives all events for all Result
s that have been finalized
for that Grammar
.
Specifically, it receives the GRAMMAR_FINALIZED
event
and following events.
It never receives a RESULT_CREATED
event because that event
always precedes the GRAMMAR_FINALIZED
event.
Recognizer
: a ResultListener
attached to
a Recognizer
receives notification of all ResultEvent
s
for all Result
s produced by that Recognizer
.
ResultListener
s attached to the Result
are notified first, then listeners attached to the matched Grammar
,
and finally to listeners attached to the Recognizer
.
A single ResultListener
may be attached to multiple objects or
types of objects (Recognizer
, Grammar
or Result
),
and multiple ResultListener
s may be attached to a single object.
The source for all ResultEvent
s issued to a ResultListener
is the Result
that generated the event.
The Result
documentation provides more detail.
ResultEvent
,
Result
,
addResultListener
,
Grammar
,
addResultListener
,
Recognizer
,
addResultListener
Method Summary | |
---|---|
void |
resultUpdate(ResultEvent event)
Method called back to indicate a Result update. |
Method Detail |
---|
void resultUpdate(ResultEvent event)
Result
update.
event
- the ResultEvent
Result
|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Speech API 2.0,
Final Release v2.0.6.
© 2008, Conversay and Sun Microsystems.