com.aspose.html.dom.events

Class CustomEvent

    • Constructor Detail

      • CustomEvent

        public CustomEvent(java.lang.String type)

        Initializes a new instance of the CustomEvent class.

        Parameters:
        type - The event type.
      • CustomEvent

        public CustomEvent(java.lang.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

      • getDetail

        @DOMNameAttribute(name="detail")
        public java.lang.Object getDetail()

        Gets the custom data.

        Value: The detail.
      • initCustomEvent

        @DOMNameAttribute(name="initCustomEvent")
        public void initCustomEvent(java.lang.String type,
                                                                              boolean bubbles,
                                                                              boolean cancelable,
                                                                              java.lang.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.