Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 798 Rev 800
Line 2... Line 2...
2
 
2
 
3
import org.tela_botanica.client.image.ImageMediateur;
3
import org.tela_botanica.client.image.ImageMediateur;
4
import org.tela_botanica.client.util.Util;
4
import org.tela_botanica.client.util.Util;
Line -... Line 5...
-
 
5
import org.tela_botanica.client.vues.MenuAideVue;
5
import org.tela_botanica.client.vues.MenuAideVue;
6
 
6
 
7
import com.google.gwt.core.client.JavaScriptObject;
7
import com.google.gwt.dev.util.collect.HashMap;
8
import com.google.gwt.dev.util.collect.HashMap;
8
import com.google.gwt.user.client.Window;
9
import com.google.gwt.user.client.Window;
9
import com.gwtext.client.core.EventCallback;
10
import com.gwtext.client.core.EventCallback;
-
 
11
import com.gwtext.client.core.EventObject;
-
 
12
import com.gwtext.client.core.Ext;
-
 
13
import com.gwtext.client.widgets.Button;
10
import com.gwtext.client.core.EventObject;
14
import com.gwtext.client.widgets.Component;
11
import com.gwtext.client.core.Ext;
15
import com.gwtext.client.widgets.SplitButton;
12
import com.gwtext.client.widgets.Toolbar;
16
import com.gwtext.client.widgets.Toolbar;
13
import com.gwtext.client.widgets.ToolbarButton;
17
import com.gwtext.client.widgets.ToolbarButton;
14
import com.gwtext.client.widgets.ToolbarItem;
18
import com.gwtext.client.widgets.ToolbarItem;
-
 
19
import com.gwtext.client.widgets.ToolbarMenuButton;
-
 
20
import com.gwtext.client.widgets.ToolbarTextItem;
-
 
21
import com.gwtext.client.widgets.event.SplitButtonListener;
Line 15... Line 22...
15
import com.gwtext.client.widgets.ToolbarMenuButton;
22
import com.gwtext.client.widgets.event.SplitButtonListenerAdapter;
16
import com.gwtext.client.widgets.ToolbarTextItem;
23
import com.gwtext.client.widgets.menu.Menu;
17
 
24
 
18
/**
25
/**
Line 93... Line 100...
93
		//images = new ToolbarMenuButton("Fichiers", imageMenu);
100
		//images = new ToolbarMenuButton("Fichiers", imageMenu);
94
		//aide = new ToolbarMenuButton("Aide", aideMenu);
101
		//aide = new ToolbarMenuButton("Aide", aideMenu);
Line 95... Line 102...
95
		
102
		
Line 96... Line 103...
96
		texteFiltres = new ToolbarTextItem("");
103
		texteFiltres = new ToolbarTextItem("");
-
 
104
		
-
 
105
		final ToolbarMenuButton menuImage = new ToolbarMenuButton("Ajouter des images", imageMenuEtendu.getMenuImage());
-
 
106
		menuImage.addListener(new SplitButtonListenerAdapter() {
-
 
107
 
-
 
108
			@Override
-
 
109
			public void onArrowClick(SplitButton menuButton, EventObject e) {
-
 
110
				menuImage.showMenu();
-
 
111
			}
-
 
112
 
-
 
113
			@Override
-
 
114
			public void onClick(Button button, EventObject e) {
-
 
115
				menuImage.showMenu();
-
 
116
			}
97
		
117
		});
98
		ToolbarMenuButton menuImage = new ToolbarMenuButton("Ajouter des images", imageMenuEtendu.getMenuImage());
118
		
-
 
119
		ToolbarButton menuSuppression = imageMenuEtendu.getBoutonSuppression();
-
 
120
		final ToolbarMenuButton menuTampon = new ToolbarMenuButton("Tampon", imageMenuEtendu.getMenuTampon());
-
 
121
		menuTampon.addListener(new SplitButtonListenerAdapter() {
-
 
122
 
-
 
123
			@Override
-
 
124
			public void onArrowClick(SplitButton menuButton, EventObject e) {
-
 
125
				menuTampon.showMenu();
-
 
126
			}
-
 
127
 
-
 
128
			@Override
-
 
129
			public void onClick(Button button, EventObject e) {
-
 
130
				menuTampon.showMenu();
Line 99... Line 131...
99
		ToolbarButton menuSuppression = imageMenuEtendu.getBoutonSuppression();
131
			}
100
		ToolbarMenuButton menuTampon = new ToolbarMenuButton("Tampon", imageMenuEtendu.getMenuTampon());
132
		});
101
		
133