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.
WebEngine, WebEngine#setOnAlert, WebEngine#setOnResized, WebEngine#setOnStatusChanged, WebEngine#setOnVisibilityChanged
| Modifier and Type | Field and Description |
|---|---|
| public static final EventType | ALERT
This event occurs when a script calls the JavaScript |
| public static final EventType | ANY
Hides javafx. |
| private final T | |
| public static final EventType | RESIZED
This event occurs when a script changes location of the JavaScript
|
| public static final EventType | STATUS_CHANGED
This event occurs when a script changes status line text. |
| public static final EventType | VISIBILITY_CHANGED
This event occurs when a script changes visibility of the JavaScript
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public String | Returns: a string representation of thisWebEvent object.Overrides java. Returns a string representation of this |
| ALERT | back to summary |
|---|---|
| public static final EventType<WebEvent<T>> ALERT This event occurs when a script calls the JavaScript | |
| ANY | back to summary |
|---|---|
| public static final EventType<WebEvent<T>> ANY Hides javafx. Common supertype for all Web event types. | |
| data | back to summary |
|---|---|
private final T data
| |
| RESIZED | back to summary |
|---|---|
| public static final EventType<WebEvent<T>> RESIZED This event occurs when a script changes location of the JavaScript
| |
| STATUS_CHANGED | back to summary |
|---|---|
| public static final EventType<WebEvent<T>> STATUS_CHANGED This event occurs when a script changes status line text. | |
| VISIBILITY_CHANGED | back to summary |
|---|---|
| public static final EventType<WebEvent<T>> VISIBILITY_CHANGED This event occurs when a script changes visibility of the JavaScript
| |
| WebEvent | back to summary |
|---|---|
| public WebEvent(Object source, EventType<WebEvent<T>> type, T data) Creates a new event object. | |
| getData | back to summary |
|---|---|
| public T getData() Returns data item carried by this event.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |