JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.event

Class MessageEvent

    • Constructor Detail

      • MessageEvent

        public MessageEvent()
        Default constructor used to build the prototype.
      • MessageEvent

        public MessageEvent(Object data)
        Constructs a Message Event with the provided data.
        Parameters:
        data - the data
    • Method Detail

      • initMessageEvent

        public void initMessageEvent(String type,
         boolean canBubble,
         boolean cancelable,
         Object data,
         String origin,
         String lastEventId,
         Window source,
         Object ports)
        Initializes an event object.
        Parameters:
        type - the event type
        canBubble - can the event bubble
        cancelable - can the event be canceled
        data - the message
        origin - the scheme, hostname and port of the document that caused the event
        lastEventId - the identifier of the last event
        source - the window object that contains the document that caused the event
        ports - the message ports
      • getData

        public Object getData()
        Retrieves the data contained.
        Returns:
        the data contained
      • getOrigin

        public String getOrigin()
        Gets the URI of the document of origin.
        Returns:
        the origin
      • setOrigin

        public void setOrigin(String origin)
        Sets the URI of the document of origin.
        Parameters:
        origin - the origin
      • getLastEventId

        public String getLastEventId()
        Retrieves the identifier of the last event.
        Returns:
        the identified of the last event
      • getSource

        public Window getSource()
        Retrieves the data contained.
        Returns:
        the data contained
      • getPorts

        public Object getPorts()
        Returns the ports property.
        Returns:
        the ports property
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /