Java 类org.eclipse.swt.browser.ProgressEvent 实例源码

项目:gama    文件:HtmlViewer.java   
@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();
}
项目:mytourbook    文件:TourBlogView.java   
private void onBrowserCompleted(final ProgressEvent event) {

        if (_reloadedTourMarkerId == null) {
            return;
        }

        // get local copy
        final long reloadedTourMarkerId = _reloadedTourMarkerId;

        /*
         * This must be run async otherwise an endless loop will happen
         */
        _browser.getDisplay().asyncExec(new Runnable() {
            @Override
            public void run() {

                final String href = "location.href='" + createHtml_MarkerName(reloadedTourMarkerId) + "'"; //$NON-NLS-1$ //$NON-NLS-2$

                _browser.execute(href);
            }
        });

        _reloadedTourMarkerId = null;
    }
项目:Rel    文件:BrowserNative.java   
@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;
}
项目:convertigo-eclipse    文件:XulWebViewerImpl.java   
@Override
public void completed(ProgressEvent e) {
    super.completed(e);
    ConvertigoPlugin.logDebug("=== Start   fireDocumentCompletedListeners ====");

    selectedElement = null;
    // Signal the listeners that the document is now built...
    fireDocumentCompletedListeners();

    ConvertigoPlugin.logDebug("=== Stop   fireDocumentCompletedListeners ====");
}
项目:APICloud-Studio    文件:LoadHandler.java   
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);
    }
}
项目:APICloud-Studio    文件:LoadHandler.java   
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);
        }
    }
}
项目:mytourbook    文件:TourLogView.java   
private void onBrowser_Completed(final ProgressEvent event) {

        _isBrowserCompleted = true;

        // a redraw MUST be done otherwise nothing is displayed
        _browser.setRedraw(true);

        // show already logged items
        final CopyOnWriteArrayList<TourLog> importLogs = TourLogManager.getLogs();
        for (final TourLog importLog : importLogs) {
            addLog(importLog);
        }
    }
项目:mytourbook    文件:RawDataView.java   
private void onBrowser_Completed(final ProgressEvent event) {

        _isBrowserCompleted = true;

        if (_isInUIStartup) {

            _isInUIStartup = false;

            // a redraw MUST be done otherwise nothing is displayed
            _browser.setRedraw(true);

            // set focus that clicking on an action works the 1st and not the 2nd time
            _browser.setFocus();

            // dashboard is visible, activate background task
            setWatcher_On();

            // make the import tiles visible otherwise they are 'hidden' after the startup
            _isShowWatcherAnimation = true;
            updateUI_WatcherAnimation(isWatchingOn() //
                    ? DOM_CLASS_DEVICE_ON_ANIMATED
                    : DOM_CLASS_DEVICE_OFF_ANIMATED);
        }

        if (_isDeviceStateUpdateDelayed.getAndSet(false)) {
            updateUI_DeviceState_DOM();
        }
    }
项目:eclipse-silverstripedt    文件:TestsViewer.java   
/**
 * Handles when the progress changes
 * @param ProgressEvent Progress event data
 */
public void changed(ProgressEvent event) {
    if(progressBar.isDisposed()==false && event.total>0) {
        if(event.total>progress.getMaximum()) {
            progressBar.setMaximum(event.total);
        }

        if(event.current<progress.getMaximum()) {
            progress.setVisible(true);
            progress.setSelection(event.current);
        }else {
            progress.setSelection(event.current);
        }
    }
}
项目:eclipse-silverstripedt    文件:TestsViewer.java   
/**
 * Handles when the progress completes
 * @param ProgressEvent Progress event data
 */
public void completed(ProgressEvent event) {
    progress.setVisible(false);
    progress.setMaximum(1);
    progress.setSelection(0);
    browser.evaluate("var links=document.getElementsByTagName('a');" +
                    "for(var i=0;i<links.length;i++) { "+
                        "links[i].href='#'; "+
                    "}");
}
项目:eclipse-silverstripedt    文件:TasksViewer.java   
/**
 * Handles when the progress changes
 * @param ProgressEvent Progress event data
 */
public void changed(ProgressEvent event) {
    if(progressBar.isDisposed()==false && event.total>0) {
        if(event.total>progress.getMaximum()) {
            progressBar.setMaximum(event.total);
        }

        if(event.current<progress.getMaximum()) {
            progress.setVisible(true);
            progress.setSelection(event.current);
        }else {
            progress.setSelection(event.current);
        }
    }
}
项目:eclipse-silverstripedt    文件:TasksViewer.java   
/**
 * Handles when the progress completes
 * @param ProgressEvent Progress event data
 */
public void completed(ProgressEvent event) {
    progress.setVisible(false);
    progress.setMaximum(1);
    progress.setSelection(0);
    browser.evaluate("var links=document.getElementsByTagName('a');" +
                    "for(var i=0;i<links.length;i++) { "+
                        "links[i].href='#'; "+
                    "}");
}
项目:eclipse-silverstripedt    文件:DevBuildViewer.java   
/**
 * Handles when the progress changes
 * @param ProgressEvent Progress event data
 */
public void changed(ProgressEvent event) {
    if(progressBar.isDisposed()==false && event.total>0) {
        if(event.total>progress.getMaximum()) {
            progressBar.setMaximum(event.total);
        }

        if(event.current<progress.getMaximum()) {
            progress.setVisible(true);
            progress.setSelection(event.current);
        }else {
            progress.setSelection(event.current);
        }
    }
}
项目:eclipse-silverstripedt    文件:DevBuildViewer.java   
/**
 * Handles when the progress completes
 * @param ProgressEvent Progress event data
 */
public void completed(ProgressEvent event) {
    progress.setVisible(false);
    progress.setMaximum(1);
    progress.setSelection(0);
    browser.evaluate("var links=document.getElementsByTagName('a');" +
                    "for(var i=0;i<links.length;i++) { "+
                        "links[i].href='#'; "+
                    "}");
}
项目:Sammelbox    文件:BrowserListener.java   
@Override
/** As soon as a page is completely loaded, it is possible to jump to a previously defined anchor */
public void completed(ProgressEvent event) {
    String anchor = BrowserFacade.getFutureJumpAnchor();

    if (!anchor.equals(UIConstants.NO_ANCHOR_DEFINED)) {
        BrowserFacade.jumpToAnchor(BrowserFacade.getFutureJumpAnchor());
    }
    ApplicationUI.createOrRetrieveAlbumItemBrowser().execute("");
}
项目:BiglyBT    文件:ExternalLoginCookieListener.java   
@Override
public void completed(ProgressEvent arg0) {
    getCookies();
}
项目:jo-widgets    文件:BrowserImpl.java   
@Override
public void changed(final ProgressEvent event) {
    for (final IBrowserProgressListener listener : new LinkedList<IBrowserProgressListener>(progressListeners)) {
        listener.loadProgressChanged(event.current, event.total);
    }
}
项目:jo-widgets    文件:BrowserImpl.java   
@Override
public void completed(final ProgressEvent event) {
    for (final IBrowserProgressListener listener : new LinkedList<IBrowserProgressListener>(progressListeners)) {
        listener.loadFinished();
    }
}
项目:AcademicTorrents-Downloader    文件:ExternalLoginCookieListener.java   
public void completed(ProgressEvent arg0) {
    getCookies();
}
项目:STAGE    文件:LidarViewerEntryPoint.java   
public void changed( ProgressEvent event ) {
}
项目:Sammelbox    文件:BrowserListener.java   
@Override
public void changed(ProgressEvent event) {
    // TODO refactor
}
项目:BiglyBT    文件:ExternalLoginCookieListener.java   
@Override
public void changed(ProgressEvent arg0) {

}
项目:AcademicTorrents-Downloader    文件:ExternalLoginCookieListener.java   
public void changed(ProgressEvent arg0) {

}