javafx.scene.web.WebErrorEvent Java Examples

The following examples show how to use javafx.scene.web.WebErrorEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SEBrowserComponent.java    From CodenameOne with GNU General Public License v2.0 5 votes vote down vote up
private static EventHandler<WebErrorEvent> createOnErrorHandler() {
    return new EventHandler<WebErrorEvent>() {
        @Override
        public void handle(WebErrorEvent event) {
            Log.p("WebError: " + event.toString());
        }
    };
}
 
Example #2
Source File: DemoBrowser.java    From FxDock with Apache License 2.0 4 votes vote down vote up
protected void handleError(WebErrorEvent ev)
{
	log.error(ev);
}
 
Example #3
Source File: JavaFxWebEngine.java    From GMapsFX with Apache License 2.0 4 votes vote down vote up
public void setOnError(EventHandler<WebErrorEvent> eventHandler) {
    webEngine.setOnError(eventHandler);
}