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

344 lines
12 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>IBM Toolbox for Java class finder</TITLE>
<meta name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
<!-- 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="../rzahg/ic.css">
<SCRIPT LANGUAGE="Javascript" type="text/javascript">
var cookieMess = "This finder uses a cookie to function. Ensure that you have are using a browser that supports cookies and that cookies are enabled.";
var errMess1= "Type a term you want to find and click Go.";
var errMess2 = "Select an option from the list and click Go.";
//START NON-TRANSLATABLE
var noVal = "zzzz";
var cookieName = "ibmjfind";
function getCookieData(label) {
var labelLen = label.length;
var cLen = document.cookie.length;
var i=0;
var cEnd;
while (i < cLen) {
var j = i + labelLen;
if (document.cookie.substring(i,j) == label) {
cEnd = document.cookie.indexOf(";",j);
if (cEnd == -1) {
cEnd = document.cookie.length;
}
return unescape(document.cookie.substring(j+1,cEnd));
}
i++
}
//if they reach this point, no cookie data was found
return(noVal);
}
function storeCookieData(storeValue) {
re = /\s*/;
var newStoreValue = "";
a = getCookieData(cookieName);
if (a != storeValue) {
s2 = storeValue.split(re);
for (var i=0; i < s2.length; i++) {
newStoreValue = newStoreValue + s2[i];
}
storeValue = newStoreValue;
}
var exp = new Date();
var oneYearFromNow = exp.getTime() + (365 * 24 * 60 * 60 * 1000);
exp.setTime(oneYearFromNow);
document.cookie = cookieName + "=" + escape(storeValue) + ";expires=" + exp.toGMTString();
}
function loadHidden() {
//loadCookieData
re = /\s*/;
a = getCookieData(cookieName);
if (a != noVal) { //cookie and data exist
a2 = a.split(re);
if (parseInt(a2[1],10) == 1) {
document.classfinder.what[1].checked = true;
}
if (isNaN(a2[0])) {
switch (a2[0]) {
case "a":
document.packagefinder.pkgValue[10].selected = true;
break;
case "b":
document.packagefinder.pkgValue[11].selected = true;
break;
case "c":
document.packagefinder.pkgValue[12].selected = true;
break;
case "d":
document.packagefinder.pkgValue[13].selected = true;
break;
case "e":
document.packagefinder.pkgValue[14].selected = true;
break;
case "f":
document.packagefinder.pkgValue[15].selected = true;
break;
case "g":
document.packagefinder.pkgValue[16].selected = true;
break;
case "h":
document.packagefinder.pkgValue[17].selected = true;
break;
} //end switch
} else {
a3 = parseInt(a2[0],10);
document.packagefinder.pkgValue[a3].selected = true;
}
if (a2.length > 3 && parseInt(a2[2],10) == 0) {
//grab rest of cookie data and stick in searcher field
a = a.replace(/\+/g," ");
document.classfinder.searcher.value = a.substring(3,a.length);
}
}
}
function valfind() {
re = /\s*/;
var cookieString = "";
if (document.classfinder.searcher.value == "") {
alert(errMess1);
return;
} else {
//overwrite cookie data
if (document.packagefinder.pkgValue.selectedIndex < 10) {
cookieString += document.packagefinder.pkgValue.selectedIndex; //save current selected option in dropdown [0]
} else {
switch (document.packagefinder.pkgValue.selectedIndex) {
case 10:
cookieString += "a"; //save current selected option in dropdown [0]
break;
case 11:
cookieString += "b"; //save current selected option in dropdown [0]
break;
case 12:
cookieString += "c"; //save current selected option in dropdown [0]
break;
case 13:
cookieString += "d"; //save current selected option in dropdown [0]
break;
case 14:
cookieString += "e"; //save current selected option in dropdown [0]
break;
case 15:
cookieString += "f"; //save current selected option in dropdown [0]
break;
case 16:
cookieString += "g"; //save current selected option in dropdown [0]
break;
case 17:
cookieString += "h"; //save current selected option in dropdown [0]
break;
} //end switch
} //end else
//cookieString += document.packagefinder.pkgValue.selectedIndex; //save current selected option in dropdown [0]
if (document.classfinder.what[1].checked == true) {
cookieString += "1"; //any [1]
} else {
cookieString += "0"; //all [1]
}
cookieString += "0"; //indicate search [2]
if (document.classfinder.searcher.value != "" && document.classfinder.searcher.value != null) {
cookieString += document.classfinder.searcher.value; //[3+]
//Replace any spaces with pluses (+)
cookieString = cookieString.replace(/\s/g,"+");
}
storeCookieData(cookieString);
inputA = getCookieData(cookieName); //load stored data
if (inputA == noVal) { //cookie did not work, probably disabled
alert(cookieMess);
//cannot continue interview without cookie
return;
}
window.location = "rzahhfinder20.htm";
}
}
function packfind(pkgValue) {
re = /\s*/;
var cookieString = "";
var tvalue = "";
var pkgNames = new Array();
pkgNames[0] = "";
pkgNames[1] = ""; // All classes
pkgNames[2] = "com.ibm.as400.access"; // Access
pkgNames[3] = "com.ibm.as400.util.commtrace"; // Commtrace
pkgNames[4] = "com.ibm.as400.data"; // Data
pkgNames[5] = "com.ibm.as400.util.html"; // HTML
pkgNames[6] = "com.ibm.as400.micro"; // Micro
pkgNames[7] = "com.ibm.as400.util.reportwriter.processor"; // Reportwriter
pkgNames[8] = "com.ibm.as400.resource"; // Resource
pkgNames[9] = "com.ibm.as400.security.auth"; // Security
pkgNames[10] = "com.ibm.as400.util.servlet"; // Servlet
pkgNames[11] = "com.ibm.as400.ui.framework.java"; // UI Framework
pkgNames[12] = "com.ibm.as400.ui.util"; // UI Utilities
pkgNames[13] = "utilities"; // Utilities
pkgNames[14] = "com.ibm.as400.vaccess"; // Vaccess
var tstring = "";
if (pkgValue == 0) {
alert(errMess2);
return;
} else {
//overwrite cookie data
if (pkgValue < 10) {
cookieString += pkgValue; //save current selected option in dropdown [0]
} else {
switch (pkgValue) {
case "10":
cookieString += "a"; //save current selected option in dropdown [0]
break;
case "11":
cookieString += "b"; //save current selected option in dropdown [0]
break;
case "12":
cookieString += "c"; //save current selected option in dropdown [0]
break;
case "13":
cookieString += "d"; //save current selected option in dropdown [0]
break;
case "14":
cookieString += "e"; //save current selected option in dropdown [0]
break;
case "15":
cookieString += "f"; //save current selected option in dropdown [0]
break;
case "16":
cookieString += "g"; //save current selected option in dropdown [0]
break;
case "17":
cookieString += "h"; //save current selected option in dropdown [0]
break;
}
}
if (document.classfinder.what[1].checked == true) {
cookieString += "1"; //any [1]
} else {
cookieString += "0"; //all [1]
}
cookieString += "1"; //indicate show package [2]
cookieString += pkgNames[pkgValue]; //[3+]
storeCookieData(cookieString);
inputA = getCookieData(cookieName); //load stored data
if (inputA == noVal) { //cookie did not work, probably disabled
//cannot continue interview without cookie
return;
}
window.location = "rzahhfinder20.htm";
}
}
function detectenter(e) {
var charCode = (navigator.appName == "Netscape") ? e.which : e.keyCode;
if (charCode == 13) {
valfind();
return false;
}
}
//END NON-TRANSLATABLE
////////// -->
</script>
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</HEAD>
<BODY onLoad="loadHidden()">
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<H2>Toolbox for Java class finder</H2>
<NOSCRIPT>
<p><strong>Warning:</strong> This finder uses JavaScript, but JavaScript is either not available or not enabled in your browser.
If you do not have access to a browser that supports JavaScript, use the Information Center navigation bar to view the Toolbox for Java class information.</p>
</NOSCRIPT>
<P>Use the class finder to find information about the Toolbox for Java classes.
You can find particular classes by searching the class name and description or by displaying a list of classes.</P>
<FORM NAME="classfinder">
<table cellspacing="4" cellpadding="4" border="0" WIDTH="85%" ALIGN="CENTER">
<TR>
<TD COLSPAN="2"><BR></td>
</TR>
<TR>
<TD colspan="2" class="finderbar"><font size="+1"><STRONG>Find by name and description</strong></font></TD>
</TR>
<TR>
<TD colspan="2"><LABEL for="searcher">Find by class name and description, or by part of either.</LABEL></TD>
</TR>
<TR>
<TD width="15%"><BR><BR></TD>
<TD><FONT SIZE=-1>Example: Enter <EM>EnvironmentVariable</EM>, <EM>OS/400 variable</EM>, or just <EM>environ</EM>.</FONT><BR><br>
<INPUT TYPE="text" NAME="searcher" id="searcher" onKeyPress="return detectenter(event)">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="button" NAME="Go" VALUE="Go" onclick="valfind()">
<br><br><FONT SIZE="-1">Show results containing:&nbsp;&nbsp;&nbsp;<input type="radio" name="what" value="all" checked="">All words&nbsp;&nbsp;&nbsp;<input type="radio" name="what" value="any">Any words</font>
<!-- <br><input type="checkbox" name="tbxpack" value="1">&nbsp;&nbsp;&nbsp;<FONT SIZE="-1">Include package name in search</font> -->
</TD>
</TR>
</table>
</FORM>
<FORM NAME="packagefinder">
<table cellspacing="4" cellpadding="4" border="0" WIDTH="85%" ALIGN="CENTER">
<TR>
<TD COLSPAN="2"><BR></td>
</TR>
<TR>
<TD colspan="2" class="finderbar"><font size="+1"><STRONG>Find by alphabetized list or by package</strong></font></TD>
</TR>
<tr>
<td colspan="2">Find by listing all classes or by individual package.</td>
</tr>
<tr>
<TD width="15%"><BR><BR></TD>
<TD><SELECT NAME="pkgValue" ID="pkgValue" SIZE="1" STYLE="display:">
// ONCHANGE="packfind(this.options[this.selectedIndex].value)"
<OPTION SELECTED VALUE= "0"></OPTION>
<OPTION VALUE= "1">All classes</OPTION>
<OPTION VALUE= "2">Access</OPTION>
<OPTION VALUE= "3">Commtrace</OPTION>
<OPTION VALUE= "4">Data</OPTION>
<OPTION VALUE= "5">HTML</OPTION>
<OPTION VALUE= "6">Micro</OPTION>
<OPTION VALUE= "7">Reportwriter</OPTION>
<OPTION VALUE= "8">Resource</OPTION>
<OPTION VALUE= "9">Security</OPTION>
<OPTION VALUE= "10">Servlet</OPTION>
<OPTION VALUE= "11">UI Framework</OPTION>
<OPTION VALUE= "12">UI Utilities</OPTION>
<OPTION VALUE= "13">Utilities</OPTION>
<OPTION VALUE= "14">Vaccess</OPTION>
</SELECT>
<INPUT TYPE="button" NAME="Go" VALUE="Go" onclick="packfind(pkgValue.options[pkgValue.selectedIndex].value)"></td>
</tr>
<TR>
<TD COLSPAN="2"><BR></TD>
</TR>
</table>
</FORM>
</BODY>
</HTML>