Programmer's Guide > Interfaces > CMSObject interface > createEvent method
  
createEvent method
Creates an event of type CMSObjectEvent.
createEvent(eventType )
Parameters
StringeventType
Specifies the type of Event interface to be created. The only event module supported by this method is CMSObjectEvents.
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 CMSObjectPreCheckin event would call createEvent with the parameter "CMSObjectPreCheckin". The initCMSObjectEvent method could then be called on the newly created CMSObjectEvent to set the specific type of CMSObjectEvent to be dispatched and to set its context information.
Returns
Event. The newly created Event.
Throws
CMSException
NOT_SUPPORTED_ERR: Raised if the implementation does not support the type of Event interface requested.