ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzahh_5.4.0.1/htmllnk.htm

58 lines
3.3 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="HTMLHyperlink class" />
<meta name="abstract" content="" />
<meta name="description" content="" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="htmllnk" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>HTMLHyperlink class</title>
</head>
<body id="htmllnk"><a name="htmllnk"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">HTMLHyperlink class</h1>
<div><p></p>
<div class="section"><p>The <a href="javadoc/com/ibm/as400/util/html/HTMLHyperlink.html"> HTMLHyperlink</a> class represents an HTML
hyperlink tag. You use the HTMLHyperlink class to create a link within your
HTML page. You can get and set many attributes of hyperlinks with this class,
including: </p>
<ul><li><a href="javadoc/com/ibm/as400/util/html/HTMLHyperlink.html#GETLINK()"> Get</a> or <a href="javadoc/com/ibm/as400/util/html/HTMLHyperlink.html#SETLINK(JAVA.LANG.STRING)"> set</a> the Uniform Resource Identifier for
the link</li>
<li><a href="javadoc/com/ibm/as400/util/html/HTMLHyperlink.html#GETTITLE()"> Get</a> or <a href="javadoc/com/ibm/as400/util/html/HTMLHyperlink.html#SETTITLE(JAVA.LANG.STRING)"> set</a> the title for the link</li>
<li><a href="javadoc/com/ibm/as400/util/html/HTMLHyperlink.html#GETTARGET()"> Get</a> or <a href="javadoc/com/ibm/as400/util/html/HTMLHyperlink.html#SETTARGET(JAVA.LANG.STRING)"> set</a> the target frame for the link</li>
</ul>
<p>The HTMLHyperlink class can print the full hyperlink with defined
properties so that you can use the output in your HTML page. </p>
<p>The following
is an example for HTMLHyperlink:</p>
<pre> // Create an HTML hyperlink to the IBM Toolbox for Java home page.
HTMLHyperlink toolbox =
new HTMLHyperlink("http://www.ibm.com/as400/toolbox", "IBM Toolbox for Java home page");
toolbox.setTarget(TARGET_BLANK);
// Display the toolbox link tag.
System.out.println(toolbox.toString());</pre>
<p>The code above
produces the following tag:</p>
<pre>&lt;a href="http://www.ibm.com/as400/toolbox"&gt;IBM Toolbox for Java home page&lt;/a&gt;</pre>
</div>
</div>
</body>
</html>