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

项目:BiglyBT    文件:BrowserWrapperFake.java   
@Override
public void
addLocationListener(
    LocationListener        l )
{
    location_listeners.add( l );
}
项目:BiglyBT    文件:BrowserWrapperFake.java   
@Override
public void
removeLocationListener(
    LocationListener        l )
{
    location_listeners.remove( l );
}
项目:BiglyBT    文件:BrowserWrapperSWT.java   
@Override
public void
addLocationListener(
    LocationListener        l )
{
    browser.addLocationListener( l );
}
项目:BiglyBT    文件:BrowserWrapperSWT.java   
@Override
public void
removeLocationListener(
    LocationListener        l )
{
    browser.removeLocationListener( l );
}
项目:team-explorer-everywhere    文件:ACSCredentialsDialog.java   
@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);
}
项目:swtbrowser    文件:HTMLBrowser.java   
/**
 * Fire event
 */
private void fireLocationEvent(){
    LocationEvent event = new LocationEvent(root);
    event.location = this.location;
    for (LocationListener listener : listeners) {
        listener.changed(event);
    }
}
项目:pentaho-kettle    文件:ShowHelpDialog.java   
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;
}
项目:team-explorer-everywhere    文件:ACSCredentialsDialog.java   
@Override
protected LocationListener getLocationListener() {
    return null;
}
项目:team-explorer-everywhere    文件:CompatibleBrowser.java   
/**
 * @see Browser#addLocationListener(LocationListener)
 */
public void addLocationListener(final LocationListener listener) {
    if (browser != null) {
        browser.addLocationListener(listener);
    }
}
项目:team-explorer-everywhere    文件:CompatibleBrowser.java   
/**
 * @see Browser#removeLocationListener(LocationListener)
 */
public void removeLocationListener(final LocationListener listener) {
    if (browser != null) {
        browser.removeLocationListener(listener);
    }
}
项目:team-explorer-everywhere    文件:FullFeaturedBrowser.java   
public void addLocationListener(final LocationListener listener) {
    browser.addLocationListener(listener);
}
项目:team-explorer-everywhere    文件:FullFeaturedBrowser.java   
public void removeLocationListener(final LocationListener listener) {
    browser.removeLocationListener(listener);
}
项目:typescript.java    文件:HoverLocationListener.java   
public static void addLinkListener(final BrowserInformationControl control,
        LocationListener listener) {
    control.addLocationListener(listener);
}
项目:bts    文件:XtextBrowserInformationControlAdapter.java   
public void addLocationListener(LocationListener createLocationListener) {
    control.addLocationListener(createLocationListener);
}
项目:bts    文件:XtextElementLinks.java   
public LocationListener createLocationListener(final ILinkHandler handler) {
    return new XtextLinkAdapter(handler);
}
项目:APICloud-Studio    文件:WebKitBrowser.java   
public void addLocationListener(LocationListener listener) {
    m_llList.add(listener);
}
项目:APICloud-Studio    文件:WebKitBrowser.java   
public void removeLocationListener(LocationListener listener) {
    m_llList.remove(listener);
}
项目:APICloud-Studio    文件:WebKitBrowser4Mac.java   
public void addLocationListener(LocationListener listener) {
    super.addLocationListener(listener);
}
项目:APICloud-Studio    文件:WebKitBrowser4Mac.java   
public void removeLocationListener(LocationListener listener) {
    super.removeLocationListener(listener);
}
项目:AcademicTorrents-Downloader    文件:BrowserWrapper.java   
public void
addLocationListener(
    LocationListener        l )
{
    browser.addLocationListener( l );
}
项目:AcademicTorrents-Downloader    文件:BrowserWrapper.java   
public void
removeLocationListener(
    LocationListener        l )
{
    browser.removeLocationListener( l );
}
项目:read-open-source-code    文件:SpoonBrowser.java   
public SpoonBrowser(Composite parent, final Spoon spoon, final String stringUrl, boolean isURL, LocationListener listener) throws SWTError {
   this(parent, spoon, stringUrl, isURL, true, listener); 
}
项目:read-open-source-code    文件:SpoonBrowser.java   
public void addLocationListener(LocationListener listener) {
 browser.addLocationListener(listener);
}
项目:read-open-source-code    文件:SpoonTabsDelegate.java   
public boolean addSpoonBrowser(String name, String urlString, LocationListener listener)
{
    boolean ok = addSpoonBrowser(name, urlString, true, listener);
    return ok;
}
项目:read-open-source-code    文件:Spoon.java   
public boolean addSpoonBrowser(String name, String urlString, LocationListener locationListener) {
  return delegates.tabs.addSpoonBrowser(name, urlString, locationListener);
}
项目:kettle-4.4.0-stable    文件:SpoonBrowser.java   
public SpoonBrowser(Composite parent, final Spoon spoon, final String stringUrl, boolean isURL, LocationListener listener) throws SWTError {
   this(parent, spoon, stringUrl, isURL, true, listener); 
}
项目:kettle-4.4.0-stable    文件:SpoonBrowser.java   
public void addLocationListener(LocationListener listener) {
 browser.addLocationListener(listener);
}
项目:kettle-4.4.0-stable    文件:SpoonTabsDelegate.java   
public boolean addSpoonBrowser(String name, String urlString, LocationListener listener)
{
    boolean ok = addSpoonBrowser(name, urlString, true, listener);
    return ok;
}
项目:kettle-4.4.0-stable    文件:Spoon.java   
public boolean addSpoonBrowser(String name, String urlString, LocationListener locationListener) {
  return delegates.tabs.addSpoonBrowser(name, urlString, locationListener);
}
项目:kettle-trunk    文件:SpoonBrowser.java   
public SpoonBrowser(Composite parent, final Spoon spoon, final String stringUrl, boolean isURL, LocationListener listener) throws SWTError {
   this(parent, spoon, stringUrl, isURL, true, listener); 
}
项目:kettle-trunk    文件:SpoonBrowser.java   
public void addLocationListener(LocationListener listener) {
 browser.addLocationListener(listener);
}
项目:kettle-trunk    文件:SpoonTabsDelegate.java   
public boolean addSpoonBrowser(String name, String urlString, LocationListener listener)
{
    boolean ok = addSpoonBrowser(name, urlString, true, listener);
    return ok;
}
项目:kettle-trunk    文件:Spoon.java   
public boolean addSpoonBrowser(String name, String urlString, LocationListener locationListener) {
  return delegates.tabs.addSpoonBrowser(name, urlString, locationListener);
}
项目:pentaho-kettle    文件:SpoonBrowser.java   
public SpoonBrowser( Composite parent, final Spoon spoon, final String stringUrl, boolean isURL,
  LocationListener listener ) throws SWTError {
  this( parent, spoon, stringUrl, isURL, true, listener );
}
项目:pentaho-kettle    文件:SpoonBrowser.java   
public void addLocationListener( LocationListener listener ) {
  browser.addLocationListener( listener );
}
项目:pentaho-kettle    文件:SpoonTabsDelegate.java   
public boolean addSpoonBrowser( String name, String urlString, LocationListener listener ) {
  boolean ok = addSpoonBrowser( name, urlString, true, listener, true );
  return ok;
}
项目:pentaho-kettle    文件:SpoonTabsDelegate.java   
public boolean addSpoonBrowser( String name, String urlString, LocationListener listener, boolean showControls ) {
  return addSpoonBrowser( name, urlString, true, listener, showControls );
}
项目:pentaho-kettle    文件:SpoonTabsDelegate.java   
public boolean addSpoonBrowser( String name, String urlString, boolean isURL, LocationListener listener ) {
  return addSpoonBrowser( name, urlString, isURL, listener, true );
}
项目:pentaho-kettle    文件:Spoon.java   
public boolean addSpoonBrowser( String name, String urlString, LocationListener locationListener, boolean showControls ) {
  return delegates.tabs.addSpoonBrowser( name, urlString, locationListener, showControls );
}
项目:pentaho-kettle    文件:Spoon.java   
public boolean addSpoonBrowser( String name, String urlString, LocationListener locationListener ) {
  return delegates.tabs.addSpoonBrowser( name, urlString, locationListener, true );
}