Author: musachy
Date: Sat Sep 22 06:24:12 2007
New Revision: 578432
URL: http://svn.apache.org/viewvc?rev=578432&view=rev
Log:
Fixing javadocs for snippet plugin
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java
Modified:
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java
URL:
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java?rev=578432&r1=578431&r2=578432&view=diff
==============================================================================
---
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java
(original)
+++
struts/struts2/trunk/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/Tree.java
Sat Sep 22 06:24:12 2007
@@ -47,8 +47,6 @@
* <!-- END SNIPPET: javadoc -->
*
* <!-- START SNIPPET: example1 -->
- * <pre>
- * <p>Tree loaded statically</p>
* <s:tree id="..." label="...">
* <s:treenode id="..." label="..." />
* <s:treenode id="..." label="...">
@@ -57,34 +55,25 @@
* &;lt;/s:treenode>
* <s:treenode id="..." label="..." />
* </s:tree>
- * </pre>
* <!-- END SNIPPET: example1 -->
*
* <!-- END SNIPPET: example2 -->
- * <p>Tree loaded dynamically</p>
- * <pre>
* <s:tree
* id="..."
* rootNode="..."
* nodeIdProperty="..."
* nodeTitleProperty="..."
* childCollectionProperty="..." />
- * </pre>
* <!-- END SNIPPET: example2 -->
*
* <!-- END SNIPPET: example3 -->
- * <p>Tree loaded dynamically using AJAX</p>
- * <pre>
* <s:url id="nodesUrl" namespace="/nodecorate" action="getNodes" />
* <div style="float:left; margin-right: 50px;">
* <sx:tree id="tree" href="%{#nodesUrl}" />
* </div>
- * </pre>
*
- * <p>On this example the url specified on the "href" attibute will be called
to load
+ * On this example the url specified on the "href" attibute will be called to
load
* the elements on the root. The response is expected to be a JSON array of
objects like:
- * </p>
- * <pre>
* [
* {
* label: "Node 1",
@@ -97,21 +86,18 @@
* id: "Node2"
* },
* ]
- * </pre>
*
- * <p>"label" is the text that will be displayed for the node. "hasChildren"
marks the node has
+ * "label" is the text that will be displayed for the node. "hasChildren"
marks the node has
* having children or not (if true, a plus icon will be assigned to the node
so it can be
* expanded). The "id" attribute will be used to load the children of the
node, when the node
* is expanded. When a node is expanded a request will be made to the url in
the "href" attribute
- * and the node's "id" will be passed in the parameter "nodeId".</p>
+ * and the node's "id" will be passed in the parameter "nodeId".
*
- * <p>The children collection for a node will be loaded only once, to reload
the children of a
+ * The children collection for a node will be loaded only once, to reload the
children of a
* node, use the "reload()" function of the treenode widget. To reload the
children nodes of "Node1"
* from the example above use the following javascript:
*
- * <pre>
* dojo.widget.byId("Node1").reload();
- * </pre>
* <!-- END SNIPPET: example3 -->
*/
@StrutsTag(name="tree",
tldTagClass="org.apache.struts2.dojo.views.jsp.ui.TreeTag", description="Render
a tree widget.")