Subversion Repositories eFlore/Archives.cel-v2

Rev

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

Rev 43 Rev 47
Line 1... Line 1...
1
package org.tela_botanica.client.vues;
1
package org.tela_botanica.client.vues;
Line 2... Line -...
2
 
-
 
3
import java.util.Iterator;
-
 
4
 
2
 
5
import org.tela_botanica.client.image.ImageMediateur;
3
import org.tela_botanica.client.image.ImageMediateur;
6
import org.tela_botanica.client.interfaces.Rafraichissable;
-
 
Line 7... Line -...
7
import org.tela_botanica.client.modeles.ImageCarnet;
-
 
8
 
4
import org.tela_botanica.client.interfaces.Rafraichissable;
9
import com.google.gwt.core.client.JavaScriptObject;
5
 
10
import com.gwtext.client.core.EventCallback;
6
import com.gwtext.client.core.EventCallback;
11
import com.gwtext.client.core.EventObject;
-
 
12
import com.gwtext.client.core.Template;
7
import com.gwtext.client.core.EventObject;
13
import com.gwtext.client.core.XTemplate;
-
 
14
import com.gwtext.client.data.Record ;
-
 
15
import com.gwtext.client.data.ArrayReader;
-
 
16
import com.gwtext.client.data.FieldDef;
-
 
17
import com.gwtext.client.data.IntegerFieldDef;
-
 
18
import com.gwtext.client.data.MemoryProxy;
8
import com.gwtext.client.core.Template;
19
import com.gwtext.client.data.RecordDef;
9
import com.gwtext.client.data.Record;
20
import com.gwtext.client.data.SimpleStore;
-
 
21
import com.gwtext.client.data.Store;
-
 
22
import com.gwtext.client.data.StringFieldDef;
10
import com.gwtext.client.data.SimpleStore;
23
import com.gwtext.client.widgets.BoxComponent;
-
 
24
import com.gwtext.client.widgets.Button;
11
import com.gwtext.client.data.Store;
25
import com.gwtext.client.widgets.Component;
12
import com.gwtext.client.widgets.Button;
26
import com.gwtext.client.widgets.Toolbar;
13
import com.gwtext.client.widgets.Toolbar;
27
import com.gwtext.client.widgets.ToolbarButton;
-
 
28
import com.gwtext.client.widgets.ToolbarTextItem;
14
import com.gwtext.client.widgets.ToolbarButton;
29
import com.gwtext.client.widgets.event.ButtonListener;
15
import com.gwtext.client.widgets.ToolbarTextItem;
30
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
16
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
31
import com.gwtext.client.widgets.form.ComboBox;
17
import com.gwtext.client.widgets.form.ComboBox;
32
import com.gwtext.client.widgets.form.Field;
-
 
33
import com.gwtext.client.widgets.form.TextField;
18
import com.gwtext.client.widgets.form.Field;
34
import com.gwtext.client.widgets.form.event.ComboBoxListener;
-
 
35
import com.gwtext.client.widgets.form.event.ComboBoxListenerAdapter;
19
import com.gwtext.client.widgets.form.TextField;
36
import com.gwtext.client.widgets.form.event.TextFieldListener;
-
 
Line 37... Line 20...
37
import com.gwtext.client.widgets.form.event.TextFieldListenerAdapter;
20
import com.gwtext.client.widgets.form.event.ComboBoxListenerAdapter;
38
import com.gwtext.client.widgets.menu.Menu;
21
import com.gwtext.client.widgets.form.event.TextFieldListenerAdapter;
39
 
22
 
Line 178... Line 161...
178
	private void ajouterListeners() 
161
	private void ajouterListeners() 
179
	{
162
	{
180
		// boutons suivants et précédents 
163
		// boutons suivants et précédents 
181
		prevPage.addListener(new ButtonListenerAdapter() {
164
		prevPage.addListener(new ButtonListenerAdapter() {
Line -... Line 165...
-
 
165
 
182
 
166
			
Line 183... Line 167...
183
			public void onClick(Button button, EventObject e) {
167
			public void onClick(Button button, EventObject e) {
184
				
168
				
185
				// si la page courante n'est pas la première
169
				// si la page courante n'est pas la première
Line 196... Line 180...
196
			}
180
			}
197
		}) ;
181
		}) ;
Line 198... Line 182...
198
		
182
		
Line -... Line 183...
-
 
183
		suivPage.addListener(new ButtonListenerAdapter() {
199
		suivPage.addListener(new ButtonListenerAdapter() {
184
			
Line 200... Line 185...
200
			
185
			
201
			public void onClick(Button button, EventObject e) {
186
			public void onClick(Button button, EventObject e) {
202
				
187
				
Line 214... Line 199...
214
			}
199
			}
215
		}) ;
200
		}) ;
Line 216... Line 201...
216
		
201
		
Line -... Line 202...
-
 
202
		champPage.addListener(new TextFieldListenerAdapter() {
217
		champPage.addListener(new TextFieldListenerAdapter() {
203
 
Line 218... Line 204...
218
 
204
			
219
			public void onSpecialKey(Field field, EventObject e) {
205
			public void onSpecialKey(Field field, EventObject e) {
220
				
206
				
Line 251... Line 237...
251
						champPage.focus(true) ;
237
						champPage.focus(true) ;
252
					}
238
					}
253
				}
239
				}
254
			}
240
			}
Line -... Line 241...
-
 
241
			
255
			
242
			
Line 256... Line 243...
256
			public void onFocus(Field field) {
243
			public void onFocus(Field field) {
257
				
244
				
Line 289... Line 276...
289
		}) ;
276
		}) ;
Line 290... Line 277...
290
		
277
		
291
		// listener pour la selection dans la combobox 
278
		// listener pour la selection dans la combobox 
Line -... Line 279...
-
 
279
		selecteurTaillePage.addListener(new ComboBoxListenerAdapter() {
292
		selecteurTaillePage.addListener(new ComboBoxListenerAdapter() {
280
			
Line 293... Line 281...
293
			
281
			
294
			public void onSelect(ComboBox comboBox, Record record, int index) {
282
			public void onSelect(ComboBox comboBox, Record record, int index) {