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

71 lines
4.4 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="HTMLTableConverter 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="tablconv" />
<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>HTMLTableConverter class</title>
</head>
<body id="tablconv"><a name="tablconv"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">HTMLTableConverter class</h1>
<div><p></p>
<div class="section"><p>The <a href="javadoc/com/ibm/as400/util/servlet/HTMLTableConverter.html"> HTMLTableConverter</a> class extends <a href="strconv.htm#strconv"> StringConverter</a> by
providing a <a href="javadoc/com/ibm/as400/util/servlet/HTMLTableConverter.html#CONVERTTOTABLES(COM.IBM.AS400.UTIL.SERVLET.ROWDATA)"> convertToTables()</a> method. This method converts row data
into an array of HTML tables that a servlet can use to display the list on
a browser. </p>
<p>You can use the <a href="javadoc/com/ibm/as400/util/servlet/HTMLTableConverter.html#GETTABLE()"> getTable()</a> and <a href="javadoc/com/ibm/as400/util/servlet/HTMLTableConverter.html#SETTABLE(COM.IBM.AS400.UTIL.HTML.HTMLTABLE)"> setTable()</a> methods to choose a default table that will
be used during conversion. You can set table headers within the HTML table
object or you can use the meta data for the header information by setting <a href="javadoc/com/ibm/as400/util/servlet/HTMLTableConverter.html#SETUSEMETADATA(BOOLEAN)"> setUseMetaData()</a> to true.</p>
<p>The <a href="javadoc/com/ibm/as400/util/servlet/HTMLTableConverter.html#SETMAXIMUMTABLESIZE(INT)"> setMaximumTableSize()</a> method allows you to limit the
number of rows in a single table. If the row data does not all fit within
the specified size of table, the converter will produce another HTML table
object in the output array. This will continue until all row data has been
converted.</p>
</div>
<div class="section"><h4 class="sectiontitle">Examples</h4><p>The following examples illustrate how to
use the HTMLTableConverter class:</p>
<ul><li>Example: <a href="lstdtout.htm#lstdtout">Using ListRowData</a></li>
<li>Example: <a href="recdtout.htm#recdtout">Using RecordListRowData</a></li>
<li>Example: <a href="sqldtout.htm#sqldtout">Using SQLResultSetRowData</a></li>
<li>Example: <a href="resourcepresentlist.htm#resourcepresentlist">Presenting
ResourceList in a servlet</a></li>
</ul>
</div>
<div class="section"><h4 class="sectiontitle">Code example disclaimer</h4><p>The following disclaimer
applies to all of the IBM<sup>®</sup> Toolbox for Java™ examples:</p>
<blockquote> <p>IBM grants you
a nonexclusive copyright license to use all programming code examples from
which you can generate similar function tailored to your own specific needs.</p>
<p>All
sample code is provided by IBM for illustrative purposes only. These examples have
not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply
reliability, serviceability, or function of these programs.</p>
<p>All programs
contained herein are provided to you "AS IS" without any warranties of any
kind. The implied warranties of non-infringement, merchantability and fitness
for a particular purpose are expressly disclaimed.</p>
</blockquote>
</div>
</div>
</body>
</html>