All Implemented Interfaces:
Serializable , Cloneable
public final class WebEvent<T>
extends Event
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 Summary
Fields
This event occurs when a script calls the JavaScript alert
function.
Common supertype for all Web event types.
This event occurs when a script changes location of the JavaScript
window object.
This event occurs when a script changes status line text.
This event occurs when a script changes visibility of the JavaScript
window object.
Constructor Summary
Constructors
Creates a new event object.
Method Summary
All Methods Instance Methods Concrete Methods
Returns data item carried by this event.
Returns a string representation of this WebEvent object.
Field Details
ANY
Common supertype for all Web event types.
RESIZED
This event occurs when a script changes location of the JavaScript
window object.
STATUS_CHANGED
This event occurs when a script changes status line text.
VISIBILITY_CHANGED
This event occurs when a script changes visibility of the JavaScript
window object.
ALERT
This event occurs when a script calls the JavaScript alert
function.
Constructor Details
WebEvent
Creates a new event object.
Parameters:
source - the event source
type - the event type
data - the data item
Method Details
getData
Returns data item carried by this event.
Returns:
the data item
toString
Returns a string representation of this WebEvent object.
Overrides:
toString in class EventObject
Returns:
a string representation of this WebEvent object.