Package org.eclipse.swt.browser

Examples of org.eclipse.swt.browser.ProgressListener


    } catch (Throwable e) {
      throw new HostedModeException(HostedModeException.NATIVE_LIBS_LOADING_ERROR,
        e,
        new String[]{libname});
    }
    m_browser.addProgressListener(new ProgressListener() {
      public void completed(ProgressEvent event) {
        try {
          fetchWindow();
        } catch (Throwable e) {
          m_exception[0] = e;
View Full Code Here


                System.err.println("could now oasdf" + e + "\n" + e.getMessage());
               
            }
            browser.setText( textString );
           
            browser.addProgressListener( new ProgressListener() {
                public void changed( ProgressEvent e ) {}
                public void completed( ProgressEvent e ) {
                    browser.execute( "window.scrollBy( 0, document.height )" );
                }
            });
View Full Code Here

    data.right = new FormAttachment(100, 0);
    data.bottom = status != null ? new FormAttachment(status, -5, SWT.DEFAULT) : new FormAttachment(100, 0);
    browser.setLayoutData(data);

    if (statusBar || toolBar)
      browser.addProgressListener(new ProgressListener() {
        public void changed(ProgressEvent event) {
          if (event.total == 0)
            return;
          int ratio = event.current * 100 / event.total;
          if (progressBar != null)
View Full Code Here

        browser.addLocationListener(urlListener);

        // add a location listener that will clear a flag at the end of any
        // navigation to a page. This is used in conjunction with the location
        // listener to filter out redundant navigations due to frames.
        browser.addProgressListener(new ProgressListener() {

            public void changed(ProgressEvent event) {
                // no-op
            }
View Full Code Here

      public void changing(LocationEvent event) {
        setBusy(true);
      }
    };

    ProgressListener progressListener = new ProgressListener() {
      public void changed(ProgressEvent event) {
        if (!fLocationInput.isDisposed()) {
          String url = ((Browser) event.widget).getUrl();
          if (ApplicationServer.getDefault().isNewsServerUrl(url)) {
            if (ApplicationServer.getDefault().isNewsServerUrl(fLocationInput.getText()))
View Full Code Here

        setBusy(true);
      }
    });

    /* Progress Listener */
    fBrowser.getControl().addProgressListener(new ProgressListener() {
      public void changed(ProgressEvent event) {
        if (!fLocationInput.isDisposed()) {
          String url = ((Browser) event.widget).getUrl();
          if (ApplicationServer.getDefault().isNewsServerUrl(url))
            fLocationInput.setText(""); //$NON-NLS-1$
View Full Code Here

  data.horizontalSpan = 3;
  data.grabExcessHorizontalSpace = true;
  data.grabExcessVerticalSpace = true;
  browser.setLayoutData(data);

  browser.addProgressListener(new ProgressListener() {
      // @SuppressWarnings("synthetic-access")
      @Override
      public void changed(ProgressEvent event) {
    // ph.getButton(IDialogConstants.OK_ID).setEnabled(false);
    // ph.getButton(IDialogConstants.CANCEL_ID).setEnabled(false);
View Full Code Here

        public void changing(LocationEvent event)
        {
        }
      });
     
      browser.addProgressListener(new ProgressListener(){
        public void changed(ProgressEvent event)
        {
          if(event.total == 0)
            return;
          int ratio = event.current * 100 / event.total;
View Full Code Here

      this.configureNewBrowser(browser);

   // each time a page is being loaded, this listener will
   // count down the latch when the page has been loaded
      browser.addProgressListener(new ProgressListener() {
         @Override
         public void changed(ProgressEvent event) { /* nothing */ }

         @Override
         public void completed(ProgressEvent event) {
View Full Code Here

      Browser browser = new Browser(shell, SWT.MOZILLA);
      browser.setBounds(shell.getClientArea());
   // each time a page is being loaded, this listener will
   // count down the latch when the page has been loaded
      browser.addProgressListener(new ProgressListener() {
         public void changed(ProgressEvent event) { /* nothing */ }

         public void completed(ProgressEvent event) {
            Crawler.this.countDownLatch();
            info(getLocalizedString(PAGE_LOADED));
View Full Code Here

TOP

Related Classes of org.eclipse.swt.browser.ProgressListener

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.