Class 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:
    SpeechEventUtilities, EventObject
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.EventObject eventObject
      The wrapped event.
      protected static int WRAPPER_ID
      Use an id that won't be confused with JSAPI event ids.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpeechEventWrapper​(java.util.EventObject e)
      Class constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.EventObject getEventObject()
      Gets the wrapped event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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.
    • Constructor Detail

      • SpeechEventWrapper

        public SpeechEventWrapper​(java.util.EventObject e)
        Class constructor.
        Parameters:
        e - the EventObject to wrap.
    • Method Detail

      • getEventObject

        public java.util.EventObject getEventObject()
        Gets the wrapped event.
        Returns:
        the event that was passed to the constructor