Source Code Cross Referenced for TreeNode.java in  » J2EE » webwork-2.2.6 » com » opensymphony » webwork » components » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » webwork 2.2.6 » com.opensymphony.webwork.components 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Copyright (c) 2005 Opensymphony. All Rights Reserved.
03:         */
04:        package com.opensymphony.webwork.components;
05:
06:        import com.opensymphony.xwork.util.OgnlValueStack;
07:
08:        import javax.servlet.http.HttpServletRequest;
09:        import javax.servlet.http.HttpServletResponse;
10:
11:        /**
12:         * <!-- START SNIPPET: javadoc -->
13:         *
14:         * Renders a tree node within a tree widget with AJAX support.<p/>
15:         *
16:         * Either of the following combinations should be used depending on if the tree 
17:         * is to be constrcted dynamically or statically. <p/>
18:         * 
19:         * <b>Dynamically</b>
20:         * <ul>
21:         * 		<li>id - id of this tree node</li>
22:         * 		<li>title - label to be displayed for this tree node</li>
23:         * </ul>
24:         * 
25:         * <b>Statically</b>
26:         * <ul>
27:         * 		<li>rootNode - the parent node of which this tree is derived from</li>
28:         * 		<li>nodeIdProperty - property to obtained this current tree node's id</li>
29:         * 		<li>nodeTitleProperty - property to obtained this current tree node's title</li>
30:         * 		<li>childCollectionProperty - property that returnds this current tree node's children</li>
31:         * </ul>
32:         *
33:         * <!-- END SNIPPET: javadoc -->
34:         *
35:         * <p/> <b>Examples</b>
36:         *
37:         * <pre>
38:         * <!-- START SNIPPET: example -->
39:         * 
40:         * &lt-- statically --&gt;
41:         * &lt;ww:tree id="..." label="..."&gt;
42:         *    &lt;ww:treenode id="..." label="..." /&gt;
43:         *    &lt;ww:treenode id="..." label="..."&gt;
44:         *        &lt;ww:treenode id="..." label="..." /&gt;
45:         *        &lt;ww:treenode id="..." label="..." /&gt;
46:         *    &;lt;/ww:treenode&gt;
47:         *    &lt;ww:treenode id="..." label="..." /&gt;
48:         * &lt;/ww:tree&gt;
49:         * 
50:         * &lt;-- dynamically --&gt;
51:         * &lt;ww:tree 
52:         *          id="..."
53:         *          rootNode="..."
54:         *          nodeIdProperty="..."
55:         *          nodeTitleProperty="..."
56:         *          childCollectionProperty="..." /&gt;
57:         * 
58:         * <!-- END SNIPPET: example -->
59:         * </pre>
60:         *
61:         * Created : Dec 12, 2005 3:53:40 PM
62:         *
63:         * @author Jason Carreira <jcarreira@eplus.com>
64:         * @author tm_jee
65:         *
66:         * @ww.tag name="treenode" tld-body-content="JSP" tld-tag-class="com.opensymphony.webwork.views.jsp.ui.TreeNodeTag"
67:         * description="Render a tree node within a tree widget."
68:         */
69:        public class TreeNode extends ClosingUIBean {
70:            private static final String TEMPLATE = "treenode-close";
71:            private static final String OPEN_TEMPLATE = "treenode";
72:
73:            public TreeNode(OgnlValueStack stack, HttpServletRequest request,
74:                    HttpServletResponse response) {
75:                super (stack, request, response);
76:            }
77:
78:            public String getDefaultOpenTemplate() {
79:                return OPEN_TEMPLATE;
80:            }
81:
82:            protected String getDefaultTemplate() {
83:                return TEMPLATE;
84:            }
85:
86:            /**
87:             * Label expression used for rendering tree node label.
88:             * @ww.tagattribute required="true"
89:             */
90:            public void setLabel(String label) {
91:                super.setLabel(label);
92:            }
93:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.