Package | Description |
---|---|
javafx.scene.web |
This package provides means for loading and displaying Web content.
|
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. |
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.
|
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 and Description |
---|
WebEvent(Object source,
EventType<WebEvent> type,
T data)
Creates a new event object.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.