createEvent(eventType )
|
|
Parameters
|
StringeventType
Specifies the type of Event interface to be created. The event modules supported by this method are CMSAdapterConnectEvent and CMSAdapterDisconnectEvent.
If the Event is to be dispatched with the dispatchEvent method, the appropriate event init method must be called after creation in order to initialize the Event's values. As an example, a user wishing to synthesize a CMSAdapterPreConnect event would call createEvent with the parameter "CMSAdapterPreConnect". The initCMSAdapterConnectEvent method could then be called on the newly created CMSAdapterConnectEvent to set the specific type of CMSAdapterConnectEvent to be dispatched and to set its context information.
|
Returns
|
Event. The newly created Event
|
Throws
|
AOMException
Raised if the implementation does not support the type of Event interface requested.
|