## Uses of Class
javafx.scene.web.WebEvent

- Packages that use WebEvent
  Package | Description
  --- | ---
  javafx.scene.web | This package provides means for loading and displaying Web content.

- - ### Uses of WebEvent in javafx.scene.web

    Fields in javafx.scene.web with type parameters of type WebEvent
    Modifier and Type | Field and Description
    --- | ---
    `static EventType<WebEvent>` | WebEvent.`ALERT` This event occurs when a script calls the JavaScript `alert` function.
    `static EventType<WebEvent>` | WebEvent.`ANY` Common supertype for all Web event types.
    `static EventType<WebEvent>` | WebEvent.`RESIZED` This event occurs when a script changes location of the JavaScript `window` object.
    `static EventType<WebEvent>` | WebEvent.`STATUS_CHANGED` This event occurs when a script changes status line text.
    `static EventType<WebEvent>` | WebEvent.`VISIBILITY_CHANGED` This event occurs when a script changes visibility of the JavaScript `window` object.

    Methods in javafx.scene.web that return types with arguments of type WebEvent
    Modifier and Type | Method and Description
    --- | ---
    `EventHandler<WebEvent<String>>` | WebEngine.`getOnAlert()` Returns the JavaScript `alert` handler.
    `EventHandler<WebEvent<Rectangle2D>>` | WebEngine.`getOnResized()` Returns the JavaScript window resize handler.
    `EventHandler<WebEvent<String>>` | WebEngine.`getOnStatusChanged()` Returns the JavaScript status handler.
    `EventHandler<WebEvent<Boolean>>` | WebEngine.`getOnVisibilityChanged()` Returns the JavaScript window visibility handler.
    `ObjectProperty<EventHandler<WebEvent<String>>>` | WebEngine.`onAlertProperty()` JavaScript `alert` handler property.
    `ObjectProperty<EventHandler<WebEvent<Rectangle2D>>>` | WebEngine.`onResizedProperty()` JavaScript window resize handler property.
    `ObjectProperty<EventHandler<WebEvent<String>>>` | WebEngine.`onStatusChangedProperty()` JavaScript status handler property.
    `ObjectProperty<EventHandler<WebEvent<Boolean>>>` | WebEngine.`onVisibilityChangedProperty()` JavaScript window visibility handler property.

    Method parameters in javafx.scene.web with type arguments of type WebEvent
    Modifier and Type | Method and Description
    --- | ---
    `void` | WebEngine.`setOnAlert(EventHandler<WebEvent<String>> handler)` Sets the JavaScript `alert` handler.
    `void` | WebEngine.`setOnResized(EventHandler<WebEvent<Rectangle2D>> handler)` Sets the JavaScript window resize handler.
    `void` | WebEngine.`setOnStatusChanged(EventHandler<WebEvent<String>> handler)` Sets the JavaScript status handler.
    `void` | WebEngine.`setOnVisibilityChanged(EventHandler<WebEvent<Boolean>> handler)` Sets the JavaScript window visibility handler.

    Constructor parameters in javafx.scene.web with type arguments of type WebEvent
    Constructor and Description
    `WebEvent(Object source, EventType<WebEvent> type, T data)` Creates a new event object.

Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.