Method:

Method:

Document hyperlinks

setHyperlink(url, dblClick)

E.g. ViewONE.setHyperlink(“newpage.html”, false);

or

ViewONE.setHyperlink(“http://mysite/newpage.html”, false);

Specifies a hyperlink that is activated when the user clicks on the image area. If the dblClick parameter is ‘true’ then the hyperlink is activated only after the user double-clicks on the image area, otherwise it requires only a single click.

The hyperlink can specify either the filename relative to the code base or the full URL as illustrated.

clearHyperlink()

E.g. ViewONE.clearHyperlink();

This method clears a hyperlink if one has previously been defined using the setHyperlink() method.

29

Page 29
Image 29
JAVA Tech VERSION 3.0 manual Document hyperlinks, SetHyperlinkurl, dblClick, ClearHyperlink