本文整理汇总了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 );
}
示例2: removeLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
public void
removeLocationListener(
LocationListener l )
{
location_listeners.remove( l );
}
示例3: addLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
public void
addLocationListener(
LocationListener l )
{
browser.addLocationListener( l );
}
示例4: removeLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
public void
removeLocationListener(
LocationListener l )
{
browser.removeLocationListener( l );
}
示例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);
}
示例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);
}
}
示例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;
}
示例8: getLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
@Override
protected LocationListener getLocationListener() {
return null;
}
示例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);
}
}
示例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);
}
}
示例11: addLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public void addLocationListener(final LocationListener listener) {
browser.addLocationListener(listener);
}
示例12: removeLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public void removeLocationListener(final LocationListener listener) {
browser.removeLocationListener(listener);
}
示例13: addLinkListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public static void addLinkListener(final BrowserInformationControl control,
LocationListener listener) {
control.addLocationListener(listener);
}
示例14: addLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public void addLocationListener(LocationListener createLocationListener) {
control.addLocationListener(createLocationListener);
}
示例15: createLocationListener
import org.eclipse.swt.browser.LocationListener; //导入依赖的package包/类
public LocationListener createLocationListener(final ILinkHandler handler) {
return new XtextLinkAdapter(handler);
}