com.sun.speech.engine
Class SpeechEventWrapper
java.lang.Object
   java.util.EventObject
java.util.EventObject
       javax.speech.SpeechEvent
javax.speech.SpeechEvent
           com.sun.speech.engine.SpeechEventWrapper
com.sun.speech.engine.SpeechEventWrapper
- All Implemented Interfaces: 
- java.io.Serializable
- public class SpeechEventWrapper- extends javax.speech.SpeechEvent
Wraps an arbitrary event object (from EventObject)
 in a SpeechEvent so that it can be dispatched through
 the speech event dispatch mechanism.
 One use of this is in the BaseEngineProperties class
 that needs to wrap and issue PropertyChangeEvents.
- See Also:
- SpeechEventUtilities,- EventObject, 
Serialized Form
| Field Summary | 
| protected  java.util.EventObject | eventObjectThe wrapped event.
 | 
| protected static int | WRAPPER_IDUse an id that won't be confused with JSAPI event ids.
 | 
 
| Fields inherited from class javax.speech.SpeechEvent | 
| id | 
 
| Fields inherited from class java.util.EventObject | 
| source | 
 
 
| Method Summary | 
|  java.util.EventObject | getEventObject()Gets the wrapped event.
 | 
 
| Methods inherited from class javax.speech.SpeechEvent | 
| getId, paramString, toString | 
 
| Methods inherited from class java.util.EventObject | 
| getSource | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
WRAPPER_ID
protected static int WRAPPER_ID
- Use an id that won't be confused with JSAPI event ids.
 
 
eventObject
protected java.util.EventObject eventObject
- The wrapped event.
 
 
SpeechEventWrapper
public SpeechEventWrapper(java.util.EventObject e)
- Class constructor.
 
- Parameters:
- e- the- EventObjectto wrap.
getEventObject
public java.util.EventObject getEventObject()
- Gets the wrapped event.
 
- 
- Returns:
- the event that was passed to the constructor