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:
- 
Field SummaryFieldsModifier 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.Eventconsumed, eventType, NULL_SOURCE_TARGET, targetFields declared in class java.util.EventObjectsource
- 
Constructor SummaryConstructors
- 
Method SummaryMethods declared in class javafx.event.Eventclone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedMethods declared in class java.util.EventObjectgetSource
- 
Field Details- 
ANYCommon supertype for all Web event types.
- 
RESIZEDThis event occurs when a script changes location of the JavaScriptwindowobject.
- 
STATUS_CHANGEDThis event occurs when a script changes status line text.
- 
VISIBILITY_CHANGEDThis event occurs when a script changes visibility of the JavaScriptwindowobject.
- 
ALERTThis event occurs when a script calls the JavaScriptalertfunction.
 
- 
- 
Constructor Details- 
WebEventCreates a new event object.- Parameters:
- source- the event source
- type- the event type
- data- the data item
 
 
- 
- 
Method Details- 
getDataReturns data item carried by this event.- Returns:
- the data item
 
- 
toStringReturns a string representation of thisWebEventobject.- Overrides:
- toStringin class- EventObject
- Returns:
- a string representation of this WebEventobject.
 
 
-