org.eclipse.swt.browser.ProgressEvent Java Examples
The following examples show how to use
org.eclipse.swt.browser.ProgressEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HtmlViewer.java From gama with GNU General Public License v3.0 | 6 votes |
@Override public void createPartControl(final Composite parent) { final Composite compo = GamaToolbarFactory.createToolbars(this, parent); browser = new Browser(compo, SWT.NONE); browser.addProgressListener(new ProgressListener() { @Override public void changed(final ProgressEvent arg0) {} @Override public void completed(final ProgressEvent event) { checkButtons(); } }); parent.layout(); openInput(); }
Example #2
Source File: BrowserNative.java From Rel with Apache License 2.0 | 6 votes |
@Override public boolean createWidget(Composite parent) { if (Util.isMac()) style = new Style(-3); else style = new Style(0); try { browser = new BrowserNativeWidget(parent, SWT.BORDER); browser.setJavascriptEnabled(true); browser.addProgressListener(new ProgressAdapter() { @Override public void completed(ProgressEvent event) { pumpQueue(); } }); } catch (Throwable t) { System.out.println("BrowserNative: Native browser not available: " + t); return false; } clear(); return true; }
Example #3
Source File: LoadHandler.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
public void onLoadStart(CefBrowser cefBrowser, int frameIdentifer) { if (!this.m_isLoading) { return; } if (this.m_ready) { this.m_ready = false; ProgressEvent event = new ProgressEvent(browser); event.current = 0; event.total = 100; browser.notifyListeners(event); } }
Example #4
Source File: LoadHandler.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
public void onLoadEnd(CefBrowser cefBrowser, int frameIdentifier, int httpStatusCode) { if (!this.m_ready) { ProgressEvent event = new ProgressEvent(browser); if (!(m_isLoading)) { event.current = 100; event.total = 100; m_ready = true; browser.notifyListeners(event); } } }
Example #5
Source File: ExternalLoginCookieListener.java From BiglyBT with GNU General Public License v2.0 | 4 votes |
@Override public void completed(ProgressEvent arg0) { getCookies(); }
Example #6
Source File: ExternalLoginCookieListener.java From BiglyBT with GNU General Public License v2.0 | 2 votes |
@Override public void changed(ProgressEvent arg0) { }