本文整理了Java中org.eclipse.swt.browser.Browser.addListener()
方法的一些代码示例,展示了Browser.addListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Browser.addListener()
方法的具体详情如下:
包路径:org.eclipse.swt.browser.Browser
类名称:Browser
方法名:addListener
暂无
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void
addListener(
int type,
Listener l )
{
browser.addListener( type, l );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Adds the listener to the collection of listeners who will be
* notified when the current location has changed or is about to change.
* <p>
* This notification typically occurs when the application navigates
* to a new location with {@link #setUrl(String)} or when the user
* activates a hyperlink.
* </p>
*
* @param listener the listener which should be notified
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
* </ul>
*
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* </ul>
*/
public void addLocationListener( LocationListener listener ) {
checkWidget();
if( listener == null ) {
SWT.error( SWT.ERROR_NULL_ARGUMENT );
}
TypedBrowserListener browserListener = new TypedBrowserListener( listener );
addListener( EventTypes.LOCALTION_CHANGED, browserListener );
addListener( EventTypes.LOCALTION_CHANGING, browserListener );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Adds the listener to the collection of listeners who will be
* notified when a progress is made during the loading of the current
* URL or when the loading of the current URL has been completed.
*
* @param listener the listener which should be notified
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
* </ul>
*
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* </ul>
*
* @since 1.4
*/
public void addProgressListener( ProgressListener listener ) {
checkWidget();
if( listener == null ) {
SWT.error( SWT.ERROR_NULL_ARGUMENT );
}
TypedBrowserListener browserListener = new TypedBrowserListener( listener );
addListener( EventTypes.PROGRESS_CHANGED, browserListener );
addListener( EventTypes.PROGRESS_COMPLETED, browserListener );
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
browser.addListener (SWT.Traverse, new Listener () {
@Override
public void handleEvent (Event event) {
代码示例来源:origin: stackoverflow.com
browser.addListener(SWT.Deactivate, deactivateListener);
browser.addListener(SWT.Activate, activateListener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.intro
browser.addListener(SWT.MenuDetect, event -> {
if (IntroPlugin.getDefault().isDebugging())
event.doit = true;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
browser.addListener(SWT.Dispose, listener);
browser.addListener(SWT.FocusIn, listener);
browser.addListener(SWT.Resize, listener);
browser.addListener(SWT.Traverse, listener);
site.addListener(SWT.MouseWheel, listener);
site.addListener(SWT.Traverse, listener);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
browser.addListener (SWT.Dispose, listener);
browser.addListener (SWT.KeyDown, listener); /* needed for tabbing into the Browser */
browser.addListener (SWT.FocusIn, listener);
browser.addListener (SWT.Resize, listener);
browser.addListener (SWT.Traverse, listener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
browser.addListener (SWT.Dispose, listener);
browser.addListener (SWT.FocusIn, listener);
browser.addListener (SWT.KeyDown, listener);
browser.addListener (SWT.Resize, listener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
browser.addListener (SWT.Dispose, listener);
browser.addListener (SWT.FocusIn, listener);
browser.addListener (SWT.KeyDown, listener);
browser.addListener (SWT.Resize, listener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
browser.addListener (SWT.Dispose, listener);
browser.addListener (SWT.FocusIn, listener);
browser.addListener (SWT.KeyDown, listener);
browser.addListener (SWT.Resize, listener);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
browser.addListener(SWT.Dispose, listener);
browser.addListener(SWT.KeyDown, listener); /* needed for tabbing into the Browser */
browser.addListener(SWT.FocusIn, listener);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
browser.addListener (folderEvents[i], listener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
browser.addListener (folderEvents[i], listener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
browser.addListener (folderEvents[i], listener);
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
browser.addListener (folderEvents[i], listener);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
browser.addListener (folderEvents[i], listener);
内容来源于网络,如有侵权,请联系作者删除!