|
JSAPI 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSpeechEvent
public abstract class SpeechEvent
The root event class for all speech events.
Events from a speech Engine
are not
synchronized with any other event queues. Synchronization with other event
queues must be implemented by the application. This root event class helps
with integration of the Java Speech API and other event-driven components.
The Engine.setSpeechEventExecutor
method provides examples of event queue integration.
Engine
,
setSpeechEventExecutor
Field Summary | |
---|---|
static int |
DISABLE_ALL
A mask helpful in disabling all events in a subclass of SpeechEvent . |
static int |
ENABLE_ALL
A mask helpful in enabling all events in a subclass of SpeechEvent . |
Constructor Summary | |
---|---|
SpeechEvent(Object source,
int id)
Constructs a SpeechEvent object. |
Method Summary | |
---|---|
int |
getId()
Returns the event identifier. |
Object |
getSource()
Returns the Object on which the event initially occurred. |
abstract String |
paramString()
Returns a parameter String that contains
the event identifier in text form. |
abstract String |
toString()
Returns a printable String . |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ENABLE_ALL
SpeechEvent
.
See the list of known subclasses above.
public static final int DISABLE_ALL
SpeechEvent
.
See the list of known subclasses above.
Constructor Detail |
---|
public SpeechEvent(Object source, int id)
SpeechEvent
object.
source
- the object that issued the eventid
- the event identifier
IllegalArgumentException
- if source
is null
getSource
,
getId
Method Detail |
---|
public int getId()
SpeechEvent
.
public abstract String paramString()
String
that contains
the event identifier in text form.
The method toString
may provide more detail.
This method is useful for event-logging and for debugging.
String
that contains the event identifier in text form.toString
public abstract String toString()
String
.
Useful for event-logging and debugging.
The method paramString
also provides printable information.
toString
in class Object
paramString
public Object getSource()
Object
on which the event initially occurred.
object
on which the event initially occurred.
|
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.