Subversion Repositories eFlore/Applications.cel

Rev

Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 58 Rev 77
Line 71... Line 71...
71
		iMediateur = im;
71
		iMediateur = im;
Line 72... Line 72...
72
 
72
 
73
		// on crée le conteneur de l'arbre
73
		// on crée le conteneur de l'arbre
74
		Label labelRecherche = new Label("Mots clés :");
74
		Label labelRecherche = new Label("Mots clés :");
-
 
75
		arbreMotsCles = new TreePanel();
Line -... Line 76...
-
 
76
		arbreMotsCles.setId("x-view-tree-filter");
-
 
77
 
-
 
78
		// on crée une racine pour l'arbre
-
 
79
		TreeNode root = new TreeNode("Tags");
-
 
80
		root.setId("racine_filtre");
-
 
81
		String[] usObject = { "Mots clés", "racine_filtre" };
-
 
82
		root.setUserObject(usObject);
75
		arbreMotsCles = new TreePanel();
83
		arbreMotsCles.setRootNode(root);
Line 76... Line 84...
76
 
84
		
77
		this.setPaddings(5);
85
		this.setPaddings(5);
78
 
86
 
Line 98... Line 106...
98
			// et éviter des bugs
106
			// et éviter des bugs
99
			public void onRender(Component component) {
107
			public void onRender(Component component) {
Line 100... Line 108...
100
 
108
 
101
				// on interdit le drag and drop dans l'arbre
109
				// on interdit le drag and drop dans l'arbre
102
				arbreMotsCles.setEnableDD(false);
-
 
103
				arbreMotsCles.setId("x-view-tree-filter");
110
				arbreMotsCles.setEnableDD(false);
104
				arbreMotsCles.setAutoWidth(false);
111
				arbreMotsCles.setAutoWidth(false);
105
				arbreMotsCles.setAutoScroll(true);
112
				arbreMotsCles.setAutoScroll(true);
Line 106... Line 113...
106
				arbreMotsCles.setBorder(false);
113
				arbreMotsCles.setBorder(false);
107
 
114
 
108
				if(estInstancie)
115
				if(estInstancie)
109
				{
116
				{
110
					// on crée une racine pour l'arbre
117
					// on crée une racine pour l'arbre
111
					TreeNode root = new TreeNode("Tags");
118
					TreeNode root = new TreeNode("Tags");
112
					root.setId("racine_filtre");
119
					root.setId("racine_filtre");
113
					String[] usObject = { "Mots clés", "racine" };
120
					String[] usObject = { "Mots clés", "racine_filtre" };
114
					root.setUserObject(usObject);
121
					root.setUserObject(usObject);
Line 115... Line 122...
115
					arbreMotsCles.setRootNode(root);
122
					arbreMotsCles.setRootNode(root);