- java.lang.Object
-
- java.util.EventObject
-
- javafx.event.Event
-
- javafx.scene.web.WebEvent<T>
-
- All Implemented Interfaces:
-
Serializable
,Cloneable
public final class WebEvent<T> extends Event
WebEvent
实例被传递到EventHandler
通过在网页上运行的JavaScript注册WebEngine
。 事件持有T
类型的单个数据项。- 从以下版本开始:
- JavaFX 2.0
- 另请参见:
-
WebEngine
,WebEngine.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
Fields Modifier and Type Field 描述 static EventType<WebEvent>
ALERT
当脚本调用JavaScriptalert
函数时,会发生此事件。static EventType<WebEvent>
ANY
所有Web事件类型的常用超类型。static EventType<WebEvent>
RESIZED
当脚本更改JavaScriptwindow
对象的位置时,会发生此事件。static EventType<WebEvent>
STATUS_CHANGED
当脚本更改状态行文本时,会发生此事件。static EventType<WebEvent>
VISIBILITY_CHANGED
当脚本更改JavaScriptwindow
对象的可见性时,会发生此事件。-
Fields inherited from class javafx.event.Event
consumed, eventType, NULL_SOURCE_TARGET, target
-
Fields inherited from class java.util.EventObject
source
-
-