Subversion Repositories eFlore/Applications.cel

Rev

Rev 2148 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2148 Rev 2166
Line 1... Line 1...
1
package org.tela_botanica.client.util;
1
package org.tela_botanica.client.util;
Line 2... Line 2...
2
 
2
 
Line -... Line 3...
-
 
3
import java.util.HashMap;
-
 
4
 
3
import java.util.HashMap;
5
import org.tela_botanica.client.cel2;
4
 
6
 
5
import com.google.gwt.json.client.JSONArray;
7
import com.google.gwt.json.client.JSONArray;
6
import com.google.gwt.json.client.JSONObject;
8
import com.google.gwt.json.client.JSONObject;
7
import com.google.gwt.user.client.Window;
9
import com.google.gwt.user.client.Window;
Line 94... Line 96...
94
	public static void copierFilsNoeud(Node ndPereOriginal, TreeNode ndPereCopie, boolean afficherCheckbox) {
96
	public static void copierFilsNoeud(Node ndPereOriginal, TreeNode ndPereCopie, boolean afficherCheckbox) {
95
		if (ndPereCopie != null && ndPereOriginal != null) {
97
		if (ndPereCopie != null && ndPereOriginal != null) {
96
			Node[] ndNodeFils = ndPereOriginal.getChildNodes();
98
			Node[] ndNodeFils = ndPereOriginal.getChildNodes();
Line 97... Line 99...
97
			
99
			
98
			for (int i = 0; i < ndNodeFils.length; i++) {
100
			for (int i = 0; i < ndNodeFils.length; i++) {
99
 
101
				
100
				String[] usObj = (String[]) ndNodeFils[i].getUserObject();
102
				String[] usObj = (String[]) ndNodeFils[i].getUserObject();
101
				TreeNode child = new TreeNode(usObj[0]);
103
				TreeNode child = new TreeNode(usObj[0]);
102
				child.setId(usObj[1]);
104
				child.setId(usObj[1]);
103
				if(afficherCheckbox) {
105
				if(afficherCheckbox) {