|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.speech.engine.SpeechEventUtilities
Utilities to help with dispatch JSAPI 1.0 events on the event dispatching thread of AWT/Swing. This is needed to help applications conform with the Swing Event Thread model. If these utilities were not used, then a GUI application would have to implement Runnables to handle JSAPI events that result in updates to the GUI.
Nested Class Summary | |
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. |
Field Summary | |
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 Summary | |
SpeechEventUtilities()
|
Method Summary | |
protected static boolean |
isAWTRunning()
Determine if the AWT event queue is running. |
static void |
postSpeechEvent(SpeechEventDispatcher dispatcher,
javax.speech.SpeechEvent event)
Post a JSAPI SpeechEvent. |
static void |
postSpeechEvent(SpeechEventDispatcher dispatcher,
javax.speech.SpeechEvent event,
boolean waitUntilDispatched)
Post a JSAPI SpeechEvent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static boolean awtRunning
protected static java.awt.EventQueue systemEventQueue
postSpeechEvent(com.sun.speech.engine.SpeechEventDispatcher, javax.speech.SpeechEvent)
protected static SpeechEventUtilities.SpeechAWTEventTarget speechAWTEventTarget
postSpeechEvent(com.sun.speech.engine.SpeechEventDispatcher, javax.speech.SpeechEvent)
public static boolean waitUntilDispatched
postSpeechEvent(com.sun.speech.engine.SpeechEventDispatcher, javax.speech.SpeechEvent)
Constructor Detail |
public SpeechEventUtilities()
Method Detail |
protected static boolean isAWTRunning()
public static void postSpeechEvent(SpeechEventDispatcher dispatcher, javax.speech.SpeechEvent event)
dispatcher
- the dispatcher that will dispatch the eventevent
- the SpeechEvent to postpublic static void postSpeechEvent(SpeechEventDispatcher dispatcher, javax.speech.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |