java.lang.Object
java.util.EventObject
javafx.event.Event
javafx.scene.web.WebEvent<T>
- All Implemented Interfaces:
Serializable,Cloneable
WebEvent instances are passed into EventHandlers registered
with a WebEngine by JavaScript running on a Web page. An event holds
a single data item of type T.- Since:
- JavaFX 2.0
- See Also:
-
WebEngineWebEngine.setOnAlert(javafx.event.EventHandler<javafx.scene.web.WebEvent<java.lang.String>>)WebEngine.setOnResized(javafx.event.EventHandler<javafx.scene.web.WebEvent<javafx.geometry.Rectangle2D>>)WebEngine.setOnStatusChanged(javafx.event.EventHandler<javafx.scene.web.WebEvent<java.lang.String>>)WebEngine.setOnVisibilityChanged(javafx.event.EventHandler<javafx.scene.web.WebEvent<java.lang.Boolean>>)- Serialized Form
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis event occurs when a script calls the JavaScriptalertfunction.Common supertype for all Web event types.This event occurs when a script changes location of the JavaScriptwindowobject.This event occurs when a script changes status line text.This event occurs when a script changes visibility of the JavaScriptwindowobject.Fields declared in class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, targetFields declared in class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods declared in class javafx.event.Event
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods declared in class java.util.EventObject
getSource
-
Field Details
-
ANY
Common supertype for all Web event types. -
RESIZED
This event occurs when a script changes location of the JavaScriptwindowobject. -
STATUS_CHANGED
This event occurs when a script changes status line text. -
VISIBILITY_CHANGED
This event occurs when a script changes visibility of the JavaScriptwindowobject. -
ALERT
This event occurs when a script calls the JavaScriptalertfunction.
-
-
Constructor Details
-
WebEvent
Creates a new event object.- Parameters:
source- the event sourcetype- the event typedata- the data item
-
-
Method Details
-
getData
Returns data item carried by this event.- Returns:
- the data item
-
toString
Returns a string representation of thisWebEventobject.- Overrides:
toStringin classEventObject- Returns:
- a string representation of this
WebEventobject.
-