Package org.eclipse.swt.browser

Examples of org.eclipse.swt.browser.LocationListener


      }
    });

    // Tie the location text box to the browser's location.
    //
    browser.addLocationListener(new LocationListener() {

      public void changed(LocationEvent evt) {
        if (evt.top) {
          setLocationText(evt.location);
        }
View Full Code Here


      browser.setText(html);
    } else if (url != null) {
      browser.setUrl(url.toString());
    }

    browser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {
      }

      public void changing(LocationEvent event) {
        event.doit = false;
View Full Code Here

            browser.addOpenWindowListener(new OpenWindowListener() {
                public void open(WindowEvent event) {
                    event.required = true; // Cancel opening of new windows
                }
            });
            browser.addLocationListener(new LocationListener() {
                public void changed(LocationEvent event) {
                    // ignore
                }

                public void changing(LocationEvent event) {
View Full Code Here

      browser.setText(html);
    } else if (url != null) {
      browser.setUrl(url.toString());
    }

    browser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {
      }

      public void changing(LocationEvent event) {
        event.doit = false;
View Full Code Here

      }
    });

    // Tie the location text box to the browser's location.
    //
    browser.addLocationListener(new LocationListener() {

      public void changed(LocationEvent evt) {
        if (evt.top) {
          setLocationText(evt.location);
        }
View Full Code Here

      public void handleEvent(Event event) {
        browser.forward();
      }
    });

    final LocationListener locationListener = new LocationListener() {
      public void changed(LocationEvent event) {
        Browser browser = (Browser) event.widget;
        back.setEnabled(browser.isBackEnabled());
        forward.setEnabled(browser.isForwardEnabled());
      }
View Full Code Here

            canvas.redraw();
          }
        }
      });
    if (addressBar || statusBar || toolBar)
      browser.addLocationListener(new LocationListener() {
        public void changed(LocationEvent event) {
          busy = true;
          if (event.top && locationBar != null)
            locationBar.setText(event.location);
        }
View Full Code Here

    fBrowser = browser;
    registerListeners();
  }

  private void registerListeners() {
    LocationListener locationListener = new LocationAdapter() {
      @Override
      public void changed(LocationEvent event) {
        fNavigationToolBarManager.find(BACK_ACTION).update(IAction.ENABLED);
        fNavigationToolBarManager.find(FORWARD_ACTION).update(IAction.ENABLED);
        setBusy(false);
View Full Code Here

    /* Listen to Open-Window-Changes */
    fBrowser.addOpenWindowListener(getOpenWindowListener());

    /* Listen to Location-Changes */
    fBrowser.addLocationListener(new LocationListener() {
      public void changed(LocationEvent event) {

        /* The website is fully loaded and external navigation is supported from now on. */
        if (event.top) {

View Full Code Here

            browser.setUrl(getProjectURL());
          }
        }
      };
     
      browser.addLocationListener(new LocationListener(){
        public void changed(LocationEvent event)
        {
          busy = true;
          if (event.top)
          location.setText(event.location);
View Full Code Here

TOP

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

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.