@Override public void addLocationListener( LocationListener l ) { location_listeners.add( l ); }
@Override public void removeLocationListener( LocationListener l ) { location_listeners.remove( l ); }
@Override public void addLocationListener( LocationListener l ) { browser.addLocationListener( l ); }
@Override public void removeLocationListener( LocationListener l ) { browser.removeLocationListener( l ); }
@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); }
/** * Fire event */ private void fireLocationEvent(){ LocationEvent event = new LocationEvent(root); event.location = this.location; for (LocationListener listener : listeners) { listener.changed(event); } }
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; }
@Override protected LocationListener getLocationListener() { return null; }
/** * @see Browser#addLocationListener(LocationListener) */ public void addLocationListener(final LocationListener listener) { if (browser != null) { browser.addLocationListener(listener); } }
/** * @see Browser#removeLocationListener(LocationListener) */ public void removeLocationListener(final LocationListener listener) { if (browser != null) { browser.removeLocationListener(listener); } }
public void addLocationListener(final LocationListener listener) { browser.addLocationListener(listener); }
public void removeLocationListener(final LocationListener listener) { browser.removeLocationListener(listener); }
public static void addLinkListener(final BrowserInformationControl control, LocationListener listener) { control.addLocationListener(listener); }
public void addLocationListener(LocationListener createLocationListener) { control.addLocationListener(createLocationListener); }
public LocationListener createLocationListener(final ILinkHandler handler) { return new XtextLinkAdapter(handler); }
public void addLocationListener(LocationListener listener) { m_llList.add(listener); }
public void removeLocationListener(LocationListener listener) { m_llList.remove(listener); }
public void addLocationListener(LocationListener listener) { super.addLocationListener(listener); }
public void removeLocationListener(LocationListener listener) { super.removeLocationListener(listener); }
public void addLocationListener( LocationListener l ) { browser.addLocationListener( l ); }
public void removeLocationListener( LocationListener l ) { browser.removeLocationListener( l ); }
public SpoonBrowser(Composite parent, final Spoon spoon, final String stringUrl, boolean isURL, LocationListener listener) throws SWTError { this(parent, spoon, stringUrl, isURL, true, listener); }
public void addLocationListener(LocationListener listener) { browser.addLocationListener(listener); }
public boolean addSpoonBrowser(String name, String urlString, LocationListener listener) { boolean ok = addSpoonBrowser(name, urlString, true, listener); return ok; }
public boolean addSpoonBrowser(String name, String urlString, LocationListener locationListener) { return delegates.tabs.addSpoonBrowser(name, urlString, locationListener); }
public SpoonBrowser( Composite parent, final Spoon spoon, final String stringUrl, boolean isURL, LocationListener listener ) throws SWTError { this( parent, spoon, stringUrl, isURL, true, listener ); }
public void addLocationListener( LocationListener listener ) { browser.addLocationListener( listener ); }
public boolean addSpoonBrowser( String name, String urlString, LocationListener listener ) { boolean ok = addSpoonBrowser( name, urlString, true, listener, true ); return ok; }
public boolean addSpoonBrowser( String name, String urlString, LocationListener listener, boolean showControls ) { return addSpoonBrowser( name, urlString, true, listener, showControls ); }
public boolean addSpoonBrowser( String name, String urlString, boolean isURL, LocationListener listener ) { return addSpoonBrowser( name, urlString, isURL, listener, true ); }
public boolean addSpoonBrowser( String name, String urlString, LocationListener locationListener, boolean showControls ) { return delegates.tabs.addSpoonBrowser( name, urlString, locationListener, showControls ); }
public boolean addSpoonBrowser( String name, String urlString, LocationListener locationListener ) { return delegates.tabs.addSpoonBrowser( name, urlString, locationListener, true ); }