Ejemplo n.º 1
0
 @Override
 public void commandReceived(WebBrowserCommandEvent e) {
   if (command.equals(e.getCommand())) {
     result.set(e.getParameters());
     ((INativeWebBrowser) e.getWebBrowser().getNativeComponent()).removeWebBrowserListener(this);
   }
 }
Ejemplo n.º 2
0
 public void commandReceived(WebBrowserCommandEvent e) {
   WebBrowserListener webBrowserListener = this.webBrowserListener.get();
   if (webBrowserListener != null) {
     boolean isInternal = e.getCommand().startsWith("[Chrriis]");
     if (!isInternal || webBrowserListener.getClass().getName().startsWith("chrriis.")) {
       webBrowserListener.commandReceived(e);
     }
   }
 }