mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Fixing javadocs for snippet plugin
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@578432 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -47,8 +47,6 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* <!-- 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 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* &;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 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* 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.")
|
||||
|
||||
Reference in New Issue
Block a user