com.sun.speech.engine
public class SpeechEventUtilities extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SpeechEventUtilities.SpeechAWTEvent
Inner class that defines SpeechAWTEvents.
|
protected static class |
SpeechEventUtilities.SpeechAWTEventTarget
Inner class used to handle events as they are dispatched from the
AWT event queue.
|
Modifier and Type | Field and Description |
---|---|
protected static boolean |
awtRunning
If true, the AWT EventQueue has been set up in the VM.
|
protected static SpeechEventUtilities.SpeechAWTEventTarget |
speechAWTEventTarget
A target used to process speechAWTEvent objects.
|
protected static java.awt.EventQueue |
systemEventQueue
The AWT EventQueue.
|
static boolean |
waitUntilDispatched
If true, wait until an event has been dispatched before returning
from the post method.
|
Constructor and Description |
---|
SpeechEventUtilities() |
Modifier and Type | Method and Description |
---|---|
protected static boolean |
isAWTRunning()
Determine if the AWT event queue is running.
|
static void |
postSpeechEvent(SpeechEventDispatcher dispatcher,
SpeechEvent event)
Post a JSAPI SpeechEvent.
|
static void |
postSpeechEvent(SpeechEventDispatcher dispatcher,
SpeechEvent event,
boolean waitUntilDispatched)
Post a JSAPI SpeechEvent.
|
protected static boolean awtRunning
protected static java.awt.EventQueue systemEventQueue
protected static SpeechEventUtilities.SpeechAWTEventTarget speechAWTEventTarget
public static boolean waitUntilDispatched
protected static boolean isAWTRunning()
public static void postSpeechEvent(SpeechEventDispatcher dispatcher, SpeechEvent event)
dispatcher
- the dispatcher that will dispatch the eventevent
- the SpeechEvent to postpublic static void postSpeechEvent(SpeechEventDispatcher dispatcher, SpeechEvent event, boolean waitUntilDispatched)
dispatcher
- the dispatcher that will dispatch the eventevent
- the SpeechEvent to postwaitUntilDispatched
- if true, do not return until the
event have been dispatched