📄 index.html
字号:
<html>
<head>
<title>jsptListe component : JSP component / Bean to create a treeview</title>
<LINK REL=STYLESHEET TYPE='text/css' HREF='./rbl_1.css'>
</head>
<BODY BGCOLOR="white">
<TABLE CELLPADDING=3 width="100%" BGCOLOR=4040A0>
<TR>
<TH class="tit">
<FONT SIZE="+3" class="tit" COLOR=D0F0FF>Java jsptListe V 1.60</FONT>
</TH></TR></TABLE>
<center>
<br>
<TABLE WIDTH="95%"><TR><TH COLSPAN=2 BGCOLOR=#D0F0FF>INDEX</TH></TR>
<TR><TD class="b1">
<font size="+1" class="b1">
<ul>
<li><a href="index.html#_A">Description</a></li>
<li><a href="index.html#_1">Registration</a></li>
<li><a href="index.html#_2">JSP Source</a></li>
<li><a href="index.html#_3">Functions</a></li>
<li><a href="index.html#_4">Data File</a></li>
<li><a href="index.html#_5">History</a></li>
<li><a href="index.html#_6">Download</a></li>
<li><a href="http://www.mycgiserver.com/~javaside/tliste_us.jsp">Sample 1</a> jsptListe </li>
<li><a href="./tliste_us.jsp">Sample 1</a> jsptListe (local)</li>
<li><a href="http://www.mycgiserver.com/~javaside/tliste_us2.jsp">Sample 2</a> jsptListe </li>
<li><a href="./tliste_us2.jsp">Sample 2</a> jsptListe (local)</li>
</ul>
</font>
</TD></TR></TABLE>
<P>
<A NAME="_A"><HR><BR>
<TABLE WIDTH="95%"><TR><TH BGCOLOR=#D0F0FF>Description</TH></TR>
<TR><TD class="b0">
This component is a new JSP version of <a href="tliste.shtml">tListe</a> script/applet. With this you can build on the fly
a nice treeview in html format.<br>
tListe JSP is compatible with ASP/Perl and applet version (same data structure).
</TD></TR></TABLE>
<a align="right" href="index.html#_0">Index</a><p>
<A NAME="_1"><HR><BR>
<TABLE WIDTH="95%"><TR><TH BGCOLOR=#D0F0FF>Registration</TH></TR>
<TR><TD class="b0">
jsptListe component is FreeWare for non commercial sites.<br>
For personal use, please add a link on your site back to my Home Page (http://www.javaside.com/)
and send me the URL where you wish to place the jsptListe component.<BR>
For professional / commercial use, you will need to obtain a "professional registration". With this registration
you can use jsptListe with no reference to me and I will send you the complete jsptListe source code.<BR>
If you want to use <B>jsptListe</B> in another application, then you must obtain a "professionnal registration".<BR>
For more information about "<B>Professional registration</B>" :
<A HREF="mailto:rberthou@wanadoo.fr?subject=US Info enreg jsptListe">R. BERTHOU.</A>
</TD></TR></TABLE>
<a align="right" href="index.html#_0">Index</a><p>
<A NAME="_2"><HR><BR>
<TABLE WIDTH="95%"><TR><TH BGCOLOR=#D0F0FF>JSP Source</TH></TR>
<TR><TD class="b0"><center>
<a href="http://www.mycgiserver.com/~javaside/tliste_us.jsp" target="_blank">Sample use</a>
<table with="95%" bgcolor="white"><tr><td><small>
<PRE>
<font color="blue"><HTML><HEAD></font>
<<font color="blue">jsp:useBean</font> id="tlisteBeanId" scope="session" class="javaside.jsptListe.tlisteBean" />
<<font color="blue">jsp:setProperty</font> name="tlisteBeanId" property="node" />
<%
<font color="green">// Declare base URl</font>
tlisteBeanId.setUrl( request.getRequestURI() );
<font color="green">// Declare defaut target</font>
tlisteBeanId.setTarget( "_blank" );
<font color="green">// Read data file</font>
tlisteBeanId.readFile("../tliste.txt" );
<font color="green">// Build data structure</font>
tlisteBeanId.endData() ;
%>
<font color="blue"><title></font>tListe version JSP<font color="blue"></title></head></font>
<font color="blue"><body><H1></font>tListe version JSP<font color="blue"></h1><br></font>
Affichage du treeview
<font color="blue"><br></font>
<font color="blue"><jsp:getProperty</font> name="tlisteBeanId" property="display" <font color="blue">/></font>
<font color="blue"></body></html></font>
</PRE></small>
</td></tr></table></center>
</TD></TR></TABLE>
<a align="right" href="index.html#_0">Index</a><p>
<A NAME="_3"><HR><BR>
<TABLE WIDTH="95%"><TR><TH BGCOLOR=#D0F0FF>Functions</TH></TR>
<TR><TD class="b0">
<CENTER>
This is the list of the open functions from your JSP code. Would you please read the samples to see the sequence of the calls.<br>
<TABLE BORDER CELLPADDING=3 class="b0">
<tr bgcolor="#F0EFD0"><th>Name</th><th>Description</th></tr>
<tr><td>String getImagePath()</td><td> Return image Path </td></tr>
<tr><td>setImagePath(String s)</td><td> Define image Path</td></tr>
<tr><td>setUrl(String s)</td><td> Define current script URL</td></tr>
<tr><td>setStyle(String s)</td><td> Define default style </td></tr>
<tr><td>String getNode()</td><td> Return treeview state</td></tr>
<tr><td>setNode(String s)</td><td> Define treeview state</td></tr>
<tr><td>String getSeparator()</td><td> Return separator (for data file)</td></tr>
<tr><td>setSeparator(String s)</td><td> Define le separator (default ";")</td></tr>
<tr><td>String getTarget()</td><td> Return current "target" (frame target destination when you open a link in jsptListe)</td></tr>
<tr><td>setTarget(String s)</td><td> Define default "target" (default "_self")</td></tr>
<tr><td>String getDisplay()</td><td> return treeview string</td></tr>
<tr><td>setFile(String s)</td><td> Define data file (tliste.txt ..)</td></tr>
<tr><td>readFile(String s)</td><td> Read data file</td></tr>
<tr><td>readFile(boolean b)</td><td> Read data file (if you use set File to define this) : <br>
if b is true all data ares read <br>
if b is false all data are read if there data is not already in memory</td></tr>
<tr><td>boolean startData(String s)</td><td> Check if data is in memory</td></tr>
<tr><td>endData()</td><td>Build treeview structure (!! mandatory !! )</td></tr>
<tr><td>int getPosition(int key)</td><td>return the position of "key" item (use this if you add item with "addRow" or "addChild") </td></tr>
<tr><td>int addChild(String titre, String sUrl, int icon)</td><td>Add a child item after the last row</td></tr>
<tr><td>int addChild(String titre, String sUrl, int icon, String sTarget)</td><td>Add a child item after the last row</td></tr>
<tr><td>int addChild(int position, String titre, String sUrl, int icon)</td><td>Add a child item after the row "position"</td></tr>
<tr><td>int addChild(int position, String titre, String sUrl, int icon, String sTarget)</td><td>Add a child item after the row "position"</td></tr>
<tr><td>int addChild(int position, String titre, String sUrl, int icon, String sTarget, String sHelp)</td><td>Add a child item after the row "position"</td></tr>
<tr><td>int addRow(String titre, String sUrl, int icon)</td><td>Add a row after the last row</td></tr>
<tr><td>int addRow(String titre, String sUrl, int icon, String target)</td><td>Add a row after the last row</td></tr>
<tr><td>int addRow(int position, String titre, String sUrl, int icon, String target)</td><td>Add a row after the row "position"</td></tr>
<tr><td>int addRow(int position, int iLevel, String title, String url, String targ, int icon, String help)</td>
<td>Add a new row at the position "position" with level "iLevel" and all other informations</td></tr>
</TABLE>
</CENTER>
</TD></TR></TABLE>
<a align="right" href="index.html#_0">Index</a><p>
<A NAME="_4"><HR><BR>
<TABLE WIDTH="95%"><TR><TH BGCOLOR=#D0F0FF>Data file format</TH></TR>
<TR><TD class="b0">
<CENTER>
<TABLE BORDER CELLPADDING=3 class="b0">
<TR BGCOLOR=F0EFD0><TH>Colum</TH><TH>Name</TH><TH>Type</TH><TH>Description</TH></TR>
<TR><TD>1</TD><TD>Level</TD><TD>Integer</TD><TD>Item level 0..20
</TD></TR>
<TR><TD>2</TD><TD>Item Name</TD><TD>string</TD><TD>Name of item (URL of bitmap if level 99)</TD></TR>
<TR><TD>3</TD><TD>Bitmap number</TD><TD>Integer</TD><TD>Item bitmap (0..9)<BR>
Rem : MOD(2) = 0 => treenode close (if node)<BR>
MOD(2) = 1 => treenode open (if node)<BR>
2 node disable.<BR>
sample if node "0, 10,12,20,..." => node close<BR>
"1, 11,13,21,..." => node open<BR>
</TD></TR>
<TR><TD>4</TD><TD>Dest URL</TD><TD>string</TD><TD>Dest. URL ( begin "./" if local URL )</TD></TR>
<TR><TD>5</TD><TD>Target</TD><TD>string</TD><TD>Target Frame (overide default )<BR>
</TD></TR>
<TR><TD>-</TD><TD>Help Bullet</TD><TD>string</TD><TD><B>Begin with "?"</B> String help display in bullet, you can define this param in 5, 6 or 7 col.</TD></TR>
</TABLE>
</CENTER>
<A HREF="./tliste.txt">Sample tliste.txt</A><BR>
</TD></TR></TABLE>
<a align="RIGHT" href="index.html#_0">Index</a><p>
<A NAME="_5"><HR><BR>
<TABLE WIDTH="95%"><TR><TH BGCOLOR=#D0F0FF>History</TH></TR>
<TR><TD class="b0">
<CENTER>
In construction...<P>
<TABLE BORDER=1 class="b0">
<TR><TD>1.60</TD><TD>Support more than 64 nodes (unlimited)...</TD></TR>
<TR><TD>1.55</TD><TD>Solve a prb with addRow functions...</TD></TR>
<TR><TD>1.50</TD><TD>Support more than 32 nodes...</TD></TR>
<TR><TD>1.00</TD><TD>Creation...</TD></TR>
</TABLE></CENTER>
</TD></TR></TABLE>
<a align="right" href="index.html#_0">Retour Index</a><p>
<A NAME="_6"><HR><BR>
<TABLE WIDTH="95%" BGCOLOR=#D0F0FF><TR><TH BGCOLOR=#D0F0FF>Download files</TH></TR>
<TR><TD class="b0"><CENTER>
<TABLE WIDTH="100%" class="b0">
<tr>
<td><a HREF="http://www.javaside.com/us/index.html">jsplListe V 1.60 <B>English</B></a></td>
<td><a HREF="http://www.javaside.com/asp/download.asp?id=147">jsplListe_us.zip</a> (41 KB) <A HREF="http://www.javaside.com/asp/download.asp?id=1147"><small>(backup)</small></A></td>
</tr>
<tr>
<td><a HREF="http://www.javaside.com/fr/index.html">jsptListe V 1.60 <b> Francais</b></a></td>
<td><a HREF="http://www.javaside.com/asp/download.asp?id=146">jsptListe_fr.zip</a> (41 KB) <A HREF="http://www.javaside.com/asp/download.asp?id=1146"><small>(backup)</small></A></td>
</tr>
</table>
</CENTER>
</TD></TR></TABLE>
<a align="right" href="index.html#_0">Index</a><p>
</center>
<hr size="3">
<table width="100%" cellpadding=0 cellspacing=0><tr valign="top">
<td align="center">
<font size=1>
<b> Copyright © 1996..2001, <a href="mailto:rbl@berthou.com">BERTHOU.</a> Tous droits réservés.</b><br>
<i>Dernière modification le 05 Septembre 2002 18H26</i>
</font>
</td></tr></table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -