Package org.mozilla.interfaces

Examples of org.mozilla.interfaces.nsIDOMWindow


      this.runOnSWTThread(new Runnable() {
         @Override
         public void run() {
            Browser browser = Crawler.this.getBrowser();
            nsIWebBrowser web_browser = (nsIWebBrowser) browser.getWebBrowser();
            nsIDOMWindow window = web_browser.getContentDOMWindow();
            nsIDOMDocument document = window.getDocument();
            outs[0] = document;
            }
         });

      nsIDOMDocument document = outs[0];
View Full Code Here


      this.runOnSWTThread(new Runnable() {
         @Override
         public void run() {
            Browser browser = Crawler.this.getBrowser();
            nsIWebBrowser web_browser = (nsIWebBrowser) browser.getWebBrowser();
            nsIDOMWindow window = web_browser.getContentDOMWindow();
            nsIDOMDocument document = window.getDocument();
            outs[0] = document;
            }
         });

      nsIDOMDocument document = outs[0];
View Full Code Here

        nsIWebBrowser iWebBrowser = MozillaXPCOM.getWebBrowser(webBrowser);
        if(iWebBrowser == null) {
          JOptionPane.showMessageDialog(webBrowser, "The XPCOM nsIWebBrowser interface could not be obtained.\nPlease check your XULRunner configuration.", "XPCOM interface", JOptionPane.ERROR_MESSAGE);
          return;
        }
        nsIDOMWindow window = iWebBrowser.getContentDOMWindow();
        nsIDOMDocument document = window.getDocument();
        nsIDOMNSHTMLDocument nsDocument = (nsIDOMNSHTMLDocument)document.queryInterface(nsIDOMNSHTMLDocument.NS_IDOMNSHTMLDOCUMENT_IID);
        nsDocument.setDesignMode(e.getStateChange() == ItemEvent.SELECTED? "on": "off");
      }
    });
    buttonPanel.add(designModeCheckBox);
View Full Code Here

TOP

Related Classes of org.mozilla.interfaces.nsIDOMWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.