Module javafx.web

Class WebEvent<T>

    • Field Detail

      • ANY

        public static final EventType<WebEvent> ANY
        Common supertype for all Web event types.
      • RESIZED

        public static final EventType<WebEvent> RESIZED
        This event occurs when a script changes location of the JavaScript window object.
      • STATUS_CHANGED

        public static final EventType<WebEvent> STATUS_CHANGED
        This event occurs when a script changes status line text.
      • VISIBILITY_CHANGED

        public static final EventType<WebEvent> VISIBILITY_CHANGED
        This event occurs when a script changes visibility of the JavaScript window object.
      • ALERT

        public static final EventType<WebEvent> ALERT
        This event occurs when a script calls the JavaScript alert function.
    • Constructor Detail

      • WebEvent

        public WebEvent​(Object source,
                        EventType<WebEvent> type,
                        T data)
        Creates a new event object.
        Parameters:
        source - the event source
        type - the event type
        data - the data item
    • Method Detail

      • getData

        public T getData​()
        Returns data item carried by this event.
        Returns:
        the data item
      • toString

        public String toString​()
        Returns a string representation of this WebEvent object.
        Overrides:
        toString in class EventObject
        Returns:
        a string representation of this WebEvent object.