Package com.sun.speech.engine
Class SpeechEventWrapper
java.lang.Object
SpeechEvent
com.sun.speech.engine.SpeechEventWrapper
public class SpeechEventWrapper
extends 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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EventObject
The wrapped event.protected static int
Use an id that won't be confused with JSAPI event ids. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
WRAPPER_ID
protected static int WRAPPER_IDUse an id that won't be confused with JSAPI event ids. -
eventObject
The wrapped event.
-
-
Constructor Details
-
SpeechEventWrapper
Class constructor.- Parameters:
e
- theEventObject
to wrap.
-
-
Method Details
-
getEventObject
Gets the wrapped event.- Returns:
- the event that was passed to the constructor
-