Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1705 Rev 2033
Line 1... Line 1...
1
package org.tela_botanica.client.vues.observation;
1
package org.tela_botanica.client.vues.observation;
Line -... Line 2...
-
 
2
 
2
 
3
 
Line 3... Line 4...
3
 
4
import java.util.HashMap;
4
import java.util.Iterator;
5
import java.util.Iterator;
5
 
6
 
Line 11... Line 12...
11
import org.tela_botanica.client.vues.BarrePaginationVue;
12
import org.tela_botanica.client.vues.BarrePaginationVue;
12
import org.tela_botanica.client.interfaces.ListePaginable;
13
import org.tela_botanica.client.interfaces.ListePaginable;
13
import org.tela_botanica.client.interfaces.Rafraichissable;
14
import org.tela_botanica.client.interfaces.Rafraichissable;
14
import org.tela_botanica.client.interfaces.VueListable;
15
import org.tela_botanica.client.interfaces.VueListable;
Line -... Line 16...
-
 
16
 
-
 
17
import com.google.gwt.user.client.Event;
15
 
18
import com.google.gwt.user.client.Timer;
16
import com.google.gwt.user.client.Window;
19
import com.google.gwt.user.client.Window;
17
import com.gwtext.client.core.EventCallback;
20
import com.gwtext.client.core.EventCallback;
18
import com.gwtext.client.core.EventObject;
21
import com.gwtext.client.core.EventObject;
19
import com.gwtext.client.core.Ext;
22
import com.gwtext.client.core.Ext;
Line 326... Line 329...
326
 
329
 
327
	/**
330
	/**
328
	 * Ajoute les listeners pour la gestion des évènements
331
	 * Ajoute les listeners pour la gestion des évènements
329
	 */
332
	 */
330
	private void ajouterListeners() {
333
	private void ajouterListeners() {
331
		
334
			
332
		this.addGridHeaderListener(new GridHeaderListenerAdapter() {		
335
		this.addGridHeaderListener(new GridHeaderListenerAdapter() {		
333
			@Override
336
			@Override
334
			public void onHeaderClick(GridPanel grid, int colIndex, EventObject e) {
337
			public void onHeaderClick(GridPanel grid, int colIndex, EventObject e) {
-
 
338
				triActif = true;
-
 
339
				Timer t = new Timer() {
-
 
340
					
-
 
341
					@Override
-
 
342
					public void run() {
-
 
343
						enregistrerEtatTri();
-
 
344
						observationMediateur.obtenirListeObservation();
-
 
345
					}
-
 
346
				};
335
				triActif = true;
347
				t.schedule(200);
336
			}
348
			}
Line 337... Line 349...
337
		});
349
		});
Line 967... Line 979...
967
	}
979
	}
Line 968... Line 980...
968
	
980
	
969
	public void setTailleInitialisee() {
981
	public void setTailleInitialisee() {
970
		tailleInitialisee = true;
982
		tailleInitialisee = true;
-
 
983
	}
-
 
984
 
-
 
985
	public String renvoyerTri() {
-
 
986
		String tri = "ordre";
-
 
987
		if(triActif) {
-
 
988
			HashMap<String, String> corr = Ontologies.getCorrespondanceGrilleObservationChampsTri();
-
 
989
			if(corr.containsKey(champTri)) {
-
 
990
				tri = corr.get(champTri);
-
 
991
			}
-
 
992
		}
-
 
993
		return tri;
-
 
994
	}
-
 
995
 
-
 
996
	public String renvoyerDirectionTri() {
-
 
997
		try {
-
 
998
			return (triActif) ? directionTri.getDirection() : "ASC";
-
 
999
		} catch (Exception e) {
-
 
1000
			return "ASC";
-
 
1001
		}
971
	}
1002
	}