com.aspose.html.dom.events

Class CustomEvent

    • Constructor Detail

      • CustomEvent

        public CustomEvent(String type)

        Initializes a new instance of the CustomEvent class.

        Parameters:
        type - The event type.
      • CustomEvent

        public CustomEvent(String type,
                           CustomEvent.CustomEventInit eventInitDict)

        Initializes a new instance of the CustomEvent class.

        Parameters:
        type - The event type.
        eventInitDict - The event initialize dictionary.
    • Method Detail

      • initCustomEvent

        @DOMNameAttribute(name="initCustomEvent")
        public void initCustomEvent(String type,
                                                                               boolean bubbles,
                                                                               boolean cancelable,
                                                                               Object detail)

        /// The Event.initEvent(String, boolean, boolean) method is used to initialize the value of an Event created through the IDocumentEvent interface.

        Parameters:
        type - The event type.
        bubbles - if set to true [bubbles].
        cancelable - if set to true [cancelable].
        detail - The custom data.


        This method may only be called before the Event has been dispatched via the IEventTarget.dispatchEvent(com.aspose.html.dom.events.Event) method, though it may be called multiple times during that phase if necessary. If called multiple times the final invocation takes precedence. If called from a subclass of Event interface only the values specified in the initEvent method are modified, all other attributes are left unchanged.