}
Object[] listeners = nativeWebBrowser.listenerList.getListenerList();
String location = (String)args[0];
boolean isTopFrame = (Boolean)args[1];
boolean isNavigating = true;
WebBrowserNavigationEvent e = null;
for(int i=listeners.length-2; i>=0; i-=2) {
if(listeners[i] == WebBrowserListener.class) {
if(e == null) {
e = new WebBrowserNavigationEvent(webBrowser, location, isTopFrame);
}
((WebBrowserListener)listeners[i + 1]).locationChanging(e);
isNavigating &= !e.isConsumed();
}
}
return isNavigating;
}