A Rich UI hyperlink widget defines a Web-page link that,
if clicked, goes to the target page.
The hyperlink widget supports these properties:
- text specifies the string that is 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, which fills the entire
page. This also occurs 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
For more information about supported properties and functions,
see "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 fills the Preview view,
you can clear the page by completing either of these actions:
- Double-click the Link Preview with Editor button
(the two arrows)
- Load an EGL file that contains a different Rich UI handler.
If you use this widget, you must use the following statement:
import com.ibm.egl.rui.widgets.Hyperlink;