Author: bleathem
Date: 2011-11-11 15:43:39 -0500 (Fri, 11 Nov 2011)
New Revision: 22919
Added:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.java
Removed:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.js
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
Log:
changed file extension of the tree basic usage example
Modified:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-11-11
07:01:28 UTC (rev 22918)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Trees.xml 2011-11-11
20:43:39 UTC (rev 22919)
@@ -35,7 +35,7 @@
<para>
Then, the data model is constructed as follows:
</para>
- <programlisting language="Java" role="JAVA"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-Basic_usage.js"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
+ <programlisting language="Java" role="JAVA"><xi:include
parse="text"
href="extras/exam-Component_Reference-richtree-Basic_usage.java"
xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
<para>
The tree then accesses the nodes of the model using the
<literal>station</literal> variable:
</para>
Copied:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.java
(from rev 22899,
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.js)
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.java
(rev 0)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.java 2011-11-11
20:43:39 UTC (rev 22919)
@@ -0,0 +1,14 @@
+private DataHolderTreeNodeImpl stationRoot = new DataHolderTreeNodeImpl();
+private DataHolderTreeNodeImpl stationNodes = new DataHolderTreeNodeImpl();
+private String[] kickRadioFeed = { "Hall & Oates - Kiss On My List",
+ "David Bowie - Let's Dance",
+ "Lyn Collins - Think (About It)",
+ "Kim Carnes - Bette Davis Eyes",
+ "KC & the Sunshine Band - Give It Up"
};
+
+stationRoot.setData("KickRadio");
+stationNodes.addChild(0, stationRoot);
+for (int i = 0; i < kickRadioFeed.length; i++){
+ DataHolderTreeNodeImpl child = new DataHolderTreeNodeImpl(true, kickRadioFeed[i]);
+ stationRoot.addChild(i, child);
+}
Deleted:
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.js
===================================================================
---
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.js 2011-11-11
07:01:28 UTC (rev 22918)
+++
modules/docs/trunk/Component_Reference/src/main/docbook/en-US/extras/exam-Component_Reference-richtree-Basic_usage.js 2011-11-11
20:43:39 UTC (rev 22919)
@@ -1,14 +0,0 @@
-private DataHolderTreeNodeImpl stationRoot = new DataHolderTreeNodeImpl();
-private DataHolderTreeNodeImpl stationNodes = new DataHolderTreeNodeImpl();
-private String[] kickRadioFeed = { "Hall & Oates - Kiss On My List",
- "David Bowie - Let's Dance",
- "Lyn Collins - Think (About It)",
- "Kim Carnes - Bette Davis Eyes",
- "KC & the Sunshine Band - Give It Up"
};
-
-stationRoot.setData("KickRadio");
-stationNodes.addChild(0, stationRoot);
-for (int i = 0; i < kickRadioFeed.length; i++){
- DataHolderTreeNodeImpl child = new DataHolderTreeNodeImpl(true, kickRadioFeed[i]);
- stationRoot.addChild(i, child);
-}