Rich UI Hyperlink

A Rich UI hyperlink defines a web-page link that, if clicked, goes to the target page.

The following properties are supported:
  • text specifies the string displayed on the page
  • target specifies a string that identifies the window in which the new web page opens. Here are the valid values:
    • "_top" opens the page in the current window, taking up the entire page. This behavior is also in effect if you specify "_self", "_parent", or no value for target.
    • "_blank" opens the page is a different browser or browser window.
  • href specifies the web address of interest

Supported properties and functions are described in Widget properties and functions.

The following example renders a link to the IBM® web site, and the displayed text is "IBM®":
Handler Hyper type RUIHandler {children = [myHyperlink]}

   myHyperlink HyperLink
   {
      text = "IBM",        
      target = "_blank",
      href = "http://www.ibm.com"
   };

end
If the web page to which you are linking takes up the Preview view, you can clear the page as follows:
  • Double-click the Link Preview with Editor button (the two arrows); or
  • Load an EGL file that contains a different Rich UI handler.
Use of this widget requires the following statement:
import com.ibm.egl.rui.widgets.Hyperlink;