Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1292 Rev 2615
Line 1... Line 1...
1
package org.tela_botanica.client.vues.image;
1
package org.tela_botanica.client.vues.image;
Line -... Line 2...
-
 
2
 
2
 
3
import org.tela_botanica.client.i18n.Msg;
3
import org.tela_botanica.client.image.ImageMediateur;
4
import org.tela_botanica.client.image.ImageMediateur;
4
import org.tela_botanica.client.util.Util;
5
import org.tela_botanica.client.util.Util;
Line 5... Line 6...
5
import org.tela_botanica.client.vues.MenuAideVue;
6
import org.tela_botanica.client.vues.MenuAideVue;
Line 94... Line 95...
94
		//images = new ToolbarMenuButton("Fichiers", imageMenu);
95
		//images = new ToolbarMenuButton("Fichiers", imageMenu);
95
		//aide = new ToolbarMenuButton("Aide", aideMenu);
96
		//aide = new ToolbarMenuButton("Aide", aideMenu);
Line 96... Line 97...
96
		
97
		
Line 97... Line 98...
97
		texteFiltres = new ToolbarTextItem("");
98
		texteFiltres = new ToolbarTextItem("");
98
		
99
		
Line 99... Line 100...
99
		final ToolbarMenuButton menuImage = new ToolbarMenuButton("Ajouter des images", imageMenuEtendu.getMenuImage());
100
		final ToolbarMenuButton menuImage = new ToolbarMenuButton(Msg.get("ajouter-images"), imageMenuEtendu.getMenuImage());
100
		menuImage.addListener(new SplitButtonListenerAdapter() {
101
		menuImage.addListener(new SplitButtonListenerAdapter() {
101
 
102
 
Line 109... Line 110...
109
				menuImage.showMenu();
110
				menuImage.showMenu();
110
			}
111
			}
111
		});
112
		});
Line 112... Line 113...
112
		
113
		
113
		ToolbarButton menuSuppression = imageMenuEtendu.getBoutonSuppression();
114
		ToolbarButton menuSuppression = imageMenuEtendu.getBoutonSuppression();
114
		final ToolbarMenuButton menuTampon = new ToolbarMenuButton("Tampon", imageMenuEtendu.getMenuTampon());
115
		final ToolbarMenuButton menuTampon = new ToolbarMenuButton(Msg.get("tampon"), imageMenuEtendu.getMenuTampon());
Line 115... Line 116...
115
		menuTampon.addListener(new SplitButtonListenerAdapter() {
116
		menuTampon.addListener(new SplitButtonListenerAdapter() {
116
 
117
 
117
			@Override
118
			@Override
Line 122... Line 123...
122
			@Override
123
			@Override
123
			public void onClick(Button button, EventObject e) {
124
			public void onClick(Button button, EventObject e) {
124
				menuTampon.showMenu();
125
				menuTampon.showMenu();
125
			}
126
			}
126
		});
127
		});
127
		
128
 
128
		ToolbarButton menuGestionMotsCles = new ToolbarButton("Gérer les mots clés");
129
		ToolbarButton menuGestionMotsCles = new ToolbarButton(Msg.get("gerer-mots-cles"));
129
		menuGestionMotsCles.addListener(new ButtonListenerAdapter() {		
130
		menuGestionMotsCles.addListener(new ButtonListenerAdapter() {		
130
			@Override
131
			@Override
131
			public void onClick(Button button, EventObject e) {
132
			public void onClick(Button button, EventObject e) {
132
				getIMediateur().afficherFenetreGestionMotsCles();
133
				getIMediateur().afficherFenetreGestionMotsCles();
133
			}
134
			}
Line 199... Line 200...
199
	}
200
	}
Line 200... Line 201...
200
	
201
	
Line 201... Line 202...
201
	private String transformerNomFiltre(String nomFiltre) {
202
	private String transformerNomFiltre(String nomFiltre) {
202
						
203
						
203
		if(nomFiltre.equals("id_mots_cles")) {
204
		if(nomFiltre.equals("id_mots_cles")) {
Line 204... Line 205...
204
			nomFiltre = "mots clés";
205
			nomFiltre = Msg.get("mots-cles");
Line 205... Line 206...
205
		}
206
		}