ABOUT US

|

SUPPORT

|

BLOG

DOWNLOADS    

 

 

 

 


 

 

Events (Blocking Events)

 

 

 

 

 

 

WebRenderer has some (listed) events that block an internal message queue that processes all WebRenderer activity. The blocking event methods are the following:

BrowserListener - onLoadIntercept(BrowserEvent e)
NetworkListener - onHTTPInterceptHeaders(NetworkEvent e)
PromptListener - onPromptDialog(PromptEvent e)

When a blocking event is fired, no other WebRenderer method calls can be made. Calling methods on the Event, such as a BrowserEvent or a NetworkEvent are permitted. If a call is made to a browser method that requires a return value then a deadlock situation may occur. So it is necessary to avoid all calls to WebRenderer browser (IBrowserCanvas) methods from these events.

Example:

Browser.addBrowserListener(new BrowserAdapter() {
        Public void onLoadIntercept(BrowserEvent event) {
                // Incorrect - can cause deadlock
                // browser.getURL();

                // Correct
                event.getURL();
        }
});

 

 

 Copyright JadeLiquid Software - www.jadeliquid.com