📄 home.html
字号:
<html jwcid="@Shell" title="Using The Tapestry Tree Control" stylesheet="ognl:assets.stylesheet"><head jwcid="@Block"> <link rel="stylesheet" type="text/css" href="../css/style.css"/></head><body jwcid="@Body"> <h1>Using The Tapestry Tree Control</h1> <div class="note"> by John Reynolds: Updated on October 22nd 2004</div><p> This application demonstrates some common ways to use the Tapestry Tree components. Thanks to Howard Lewis Ship and the many subscribers of the Tapestry Users List who offered suggestions and guidance. </p><p> This application provides a series of pages that demonstrate one way of configuring the Tree to produce desired behaviors. The chosen techniques may not be optimal, but hopefully they will be understandable and will help you figure out how to reach your own objectives. </p><p> Below is a static HTML representation of the first tree that we will implement:<p><table border="1"><tr><td valign="top"><span class="tree"><span style="padding-left: 0px" class="notSelectedNodeViewClass"><img src="/TapestryTrees/app?service=asset&sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftree%2Fcomponents%2Fminus.gif" border="0"/>Root Node<br></span><span style="padding-left: 15px" class="notSelectedNodeViewClass"><img src="/TapestryTrees/app?service=asset&sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftree%2Fcomponents%2Fminus.gif" border="0"/>Child One<br></span><span style="padding-left: 30px" class="notSelectedNodeViewClass"><img src="/TapestryTrees/app?service=asset&sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftree%2Fcomponents%2Fminus.gif" border="0"/>Grandchild One<br></span><span style="padding-left: 15px" class="notSelectedNodeViewClass"><img src="/TapestryTrees/app?service=asset&sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftree%2Fcomponents%2Fminus.gif" border="0"/>Child Two<br></span><span style="padding-left: 30px" class="notSelectedNodeViewClass"><img src="/TapestryTrees/app?service=asset&sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftree%2Fcomponents%2Fminus.gif" border="0"/>GrandChild Two<br></span><span style="padding-left: 45px" class="selectedNodeViewClass"><img src="/TapestryTrees/app?service=asset&sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftree%2Fcomponents%2Fminus.gif" border="0"/>Great Grandchild One<br></span></span> </td></tr></table><p> The Tree components require creating a bit of custom Java to use, but the results are pretty nice. If you want to skip ahead and see something impressive, follow the link to the <a href="#" jwcid="@PageLink" page="FileSystemTree">Tapestry Workbench File System Tree</a>.<p> <a href="#" jwcid="@PageLink" page="FirstTree">Getting Started...</a><p><a href="#" jwcid="@PageLink" page="FirstTree1">Creating a class that implements ITreeNode...</a><p><a href="#" jwcid="@PageLink" page="FirstTree2">Creating a populated ITreeModel...</a><p><a href="#" jwcid="@PageLink" page="FirstTree3">Performing an action when a node is clicked...</a><p><a href="#" jwcid="@PageLink" page="FirstTree4">Changing the open and close icons...</a><p><p><a href="#" jwcid="@PageLink" page="FileSystemTree">The Tapestry Workbench File System Tree...</a></body></html><!-- * Released in the Public Domain by John Reynolds: http://weblogs.java.net/blog/johnreynolds/ * October 2004 * This work is hereby released into the Public Domain. * To view a copy of the public domain dedication, visit * http://creativecommons.org/licenses/publicdomain/ * or send a letter to Creative Commons, 559 Nathan Abbott Way, * Stanford, California 94305, USA.-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -