当前位置: 首页>>代码示例>>Java>>正文


Java LocationListener类代码示例

本文整理汇总了Java中org.eclipse.swt.browser.LocationListener的典型用法代码示例。如果您正苦于以下问题:Java LocationListener类的具体用法?Java LocationListener怎么用?Java LocationListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


LocationListener类属于org.eclipse.swt.browser包,在下文中一共展示了LocationListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
public void
addLocationListener(
	LocationListener		l )
{
	location_listeners.add( l );
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:8,代码来源:BrowserWrapperFake.java

示例2: removeLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
public void
removeLocationListener(
	LocationListener		l )
{
	location_listeners.remove( l );
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:8,代码来源:BrowserWrapperFake.java

示例3: addLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
public void
addLocationListener(
	LocationListener		l )
{
	browser.addLocationListener( l );
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:8,代码来源:BrowserWrapperSWT.java

示例4: removeLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
public void
removeLocationListener(
	LocationListener		l )
{
	browser.removeLocationListener( l );
}
 
开发者ID:BiglySoftware,项目名称:BiglyBT,代码行数:8,代码来源:BrowserWrapperSWT.java

示例5: hookAddToDialogArea

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
protected void hookAddToDialogArea(final Composite dialogArea) {
    final GridLayout layout = new GridLayout(1, false);
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    layout.horizontalSpacing = getHorizontalSpacing();
    layout.verticalSpacing = getVerticalSpacing();
    dialogArea.setLayout(layout);

    log.trace("get browser instance"); //$NON-NLS-1$
    browser = new FullFeaturedBrowser(dialogArea, SWT.NONE, getBrowserStyle());

    GridDataBuilder.newInstance().grab().fill().wHint((int) (getMinimumMessageAreaWidth() * 1.5)).hHint(
        getMinimumMessageAreaWidth()).applyTo(browser);

    final String interstitialText = loadInterstitial();
    log.trace("set browser text to: " + interstitialText); //$NON-NLS-1$
    browser.setText(loadInterstitial());

    log.trace("add location listener"); //$NON-NLS-1$
    final LocationListener locationListener = getLocationListener();
    if (locationListener != null) {
        browser.addLocationListener(locationListener);
    }

    final Composite spacerComposite = new Composite(dialogArea, SWT.NONE);
    GridDataBuilder.newInstance().hGrab().hFill().applyTo(spacerComposite);

    final GridLayout spacerLayout = new GridLayout(1, false);
    spacerLayout.marginHeight = 0;
    spacerLayout.marginTop = 0;
    spacerLayout.marginBottom = getVerticalMargin() / 2;
    spacerLayout.marginWidth = getHorizontalMargin() / 2;
    spacerComposite.setLayout(spacerLayout);

    locationText = new Text(spacerComposite, SWT.READ_ONLY);
    locationText.setText(serverSigninURL.toString());
    locationText.setBackground(getShell().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
    GridDataBuilder.newInstance().hGrab().hFill().applyTo(locationText);
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:41,代码来源:ACSCredentialsDialog.java

示例6: fireLocationEvent

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
/**
 * Fire event
 */
private void fireLocationEvent(){
    LocationEvent event = new LocationEvent(root);
    event.location = this.location;
    for (LocationListener listener : listeners) {
        listener.changed(event);
    }
}
 
开发者ID:prasser,项目名称:swtbrowser,代码行数:11,代码来源:HTMLBrowser.java

示例7: ShowHelpDialog

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public ShowHelpDialog( Shell parent, String dialogTitle, String url, String header,
                       LocationListener locationListener ) {
  super( parent, SWT.NONE );
  props = PropsUI.getInstance();
  this.dialogTitle = dialogTitle;
  this.header = header;
  this.url = url;
  this.locationListener = locationListener;
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:10,代码来源:ShowHelpDialog.java

示例8: getLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
protected LocationListener getLocationListener() {
    return null;
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:5,代码来源:ACSCredentialsDialog.java

示例9: addLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
/**
 * @see Browser#addLocationListener(LocationListener)
 */
public void addLocationListener(final LocationListener listener) {
    if (browser != null) {
        browser.addLocationListener(listener);
    }
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:9,代码来源:CompatibleBrowser.java

示例10: removeLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
/**
 * @see Browser#removeLocationListener(LocationListener)
 */
public void removeLocationListener(final LocationListener listener) {
    if (browser != null) {
        browser.removeLocationListener(listener);
    }
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:9,代码来源:CompatibleBrowser.java

示例11: addLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public void addLocationListener(final LocationListener listener) {
    browser.addLocationListener(listener);
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:4,代码来源:FullFeaturedBrowser.java

示例12: removeLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public void removeLocationListener(final LocationListener listener) {
    browser.removeLocationListener(listener);
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:4,代码来源:FullFeaturedBrowser.java

示例13: addLinkListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public static void addLinkListener(final BrowserInformationControl control,
		LocationListener listener) {
	control.addLocationListener(listener);
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:5,代码来源:HoverLocationListener.java

示例14: addLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public void addLocationListener(LocationListener createLocationListener) {
	control.addLocationListener(createLocationListener);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:XtextBrowserInformationControlAdapter.java

示例15: createLocationListener

import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public LocationListener createLocationListener(final ILinkHandler handler) {
	return new XtextLinkAdapter(handler);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:XtextElementLinks.java


注:本文中的org.eclipse.swt.browser.LocationListener类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。