Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • Lotus Expeditor wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
IBM Translated Product Documentation...

 Lotus Expeditor 6.2.3 Documentation
 IBM Translated Product Documentation

Tag Cloud

  • 6.2.1
  • 6.2.2
  • 6.2.3
  • access services
  • accounts
  • administer
  • application
  • applications
  • broker
  • client
  • client for desktop
  • client management
  • cluster
  • collecting data
  • configuration
  • configure
  • data integrity check tools
  • database
  • db2
  • db2e
  • deleting log entries automatically
  • demo
  • demonstration
  • desktop overview
  • develop
  • device
  • device client
  • diagnosis of problems. See troubleshooting
  • diagnostic data
  • diagnostic tool
  • documentation
  • download
  • environment variables
  • error messages
  • expeditor
  • expeditor server
  • expeditor toolkit
  • files
  • fix pack
  • gettingstarted
  • Help
  • how-to
  • IBM Support
  • install
  • installation
  • integration
  • integrator
  • interaction services
  • Interrogation Windows Tab
  • introduce
  • introduction
  • log files
  • messaging
  • micro
  • mobile databases
  • mobile databases
  • mobile devices
  • mqe
  • nci
  • notes
  • OpenSpan
  • OpenSpan Scripting Container
  • OpenSpan Windows Container
  • overview
  • platform
  • portlet
  • prerequisites
  • presentation
  • problems with synchronization. See troubleshooting.
  • purging log entries automatically
  • Release Notes
  • replication
  • resources on the Web
  • rich client application
  • samples
  • scripts
  • security
  • server
  • software
  • software prerequisites
  • support
  • support troubleshooting
  • Sync Client
  • Sync Server
  • synchronization
  • synchronization problems
  • tool
  • toolkit
  • tools
  • trace files
  • trace level
  • troubleshoot
  • troubleshooting
  • tutorial
  • use
  • was
  • web services
  • What's New
  • xcm
  • xpdt
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Lotus Expeditor 6.2.3 Documentation > Accessing a Web address with the integrated browser application
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

Accessing a Web address with the integrated browser application 

expanded Abstract
collapsed Abstract
No abstract provided.



Lotus® Expeditor has an integrated browser application within the workbench. You can use the com.ibm.rcp.ui.browser.launcher code provided in Lotus Expeditor to implement a hypertext link in your application that, when clicked, opens the Web address in a browser view. You can set the browser view to be an embedded browser in the application tabs or an external browser.

To access a web address in your application by launching an integrated browser application, perform the following procedure:
  1. Set the Required Bundle as: Require-Bundle: com.ibm.rcp.ui.browser.launcher.
  2. In the class that implements the API, import the following class:
    • import com.ibm.rcp.ui.browser.launcher.BrowserLauncher;
  3. Get the BrowserLauncher instance using the BrowserLauncher class.
    • BrowserLauncher launcher=BrowserLauncher.getLauncher();
  4. Launch the given URL with the integrated browser application through the default method.
    • launcher.launchURLasDefault("http://www.ibm.com");



      This will launch a browser view with web address http://www.ibm.com. The default behavior is set by the user through the Web Browser preference page. The user can select the embedded web browser in the client or the external browser set as the default to launch this web address.
  5. Launch the given URL with the embedded browser view.
    • final String secondaryId = BROWSER_VIEW_ID	+ Integer.toString(++counter);
      			Map configMap = new HashMap();
      			configMap.put(BrowserPreference.ID, secondaryId);
      			BrowserLauncher bLauncher=BrowserLauncher.getLauncher();
      		bLauncher.launchURLasEmbedded("http://www.ibm.com",null, configMap);


      This will force the launch of an embedded browser in the application tab of the workbench. You can have advanced control of the browser view by configuring the configMap object. All configurations are described in Setting browser preferences.

      Note: This sample code requires the bundle com.ibm.rcp.ui.browser, and should import com.ibm.rcp.ui.browser.launcher.BrowserLauncher in the class.
  6. Launch the given URL with an external browser.
    • launcher.launchURLasExternal ("http://www.ibm.com");




      This will force the launch of an external browser with a given URL.
The following is sample code illustrates the urlLauncher.java.

package com.ibm.rcp.samples.ui.browser.launcher;
 
import java.util.HashMap;
import java.util.Map;
 
import com.ibm.rcp.ui.browser.BrowserPreference;
import com.ibm.rcp.ui.browser.launcher.BrowserLauncher;
 
public class urlLauncher{
	private static final String BROWSER_VIEW_ID = 
      "com.ibm.rcp.ui.samples.browsertab"; //$NON-NLS-1$
	private static int counter;
	
	public boolean launchURL(String url){
		BrowserLauncher launcher=BrowserLauncher.getLauncher();
		return launcher.launchURLasDefault(url);
	}
	public boolean launchURLasEmbed(String url){
		final String secondaryId = BROWSER_VIEW_ID	+ Integer.toString(++counter);
		Map configMap = new HashMap();
		configMap.put(BrowserPreference.ID, secondaryId);
		BrowserLauncher bLauncher=BrowserLauncher.getLauncher();
		return bLauncher.launchURLasEmbedded(url,null, configMap);
	}
	public boolean launchURLasExternal(String url){
		BrowserLauncher launcher=BrowserLauncher.getLauncher();
		return launcher.launchURLasExternal(url);
	}
	
}

    Customizing the integrated browser application with Eclipse preferences

    Acquiring a W3C HTMLDocument object from a page selection
    Lotus Expeditor allows you to get an HTMLDocument object from the browser's current selection. The integrated browser implements this using the ISelectionProvider interface.
Parent topic: Implementing an embedded Web browser

expanded Article information
collapsed Article information
Category:
Lotus Expeditor 6.2.3 Documentation, Product documentation,
Tags:
6.2.3, documentation

This Version: Version 1 October 5, 2011 11:49:26 AM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) Oct 5, 2011 11:49:26 AM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use