- 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
-
-