Subversion Repositories eFlore/Applications.del

Rev

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

Rev 28 Rev 32
Line 1... Line 1...
1
package org.tela_botanica.del.client.vues.rechercheobservations;
1
package org.tela_botanica.del.client.vues.rechercheobservations;
Line 2... Line 2...
2
 
2
 
-
 
3
import java.util.ArrayList;
3
import java.util.ArrayList;
4
import java.util.Iterator;
Line -... Line 5...
-
 
5
import java.util.List;
-
 
6
 
4
import java.util.List;
7
import org.tela_botanica.del.client.modeles.Observation;
5
 
8
 
6
import com.google.gwt.user.client.ui.Composite;
9
import com.google.gwt.user.client.ui.Composite;
7
import com.google.gwt.user.client.ui.FlexTable;
10
import com.google.gwt.user.client.ui.FlexTable;
8
import com.google.gwt.user.client.ui.FlowPanel;
11
import com.google.gwt.user.client.ui.FlowPanel;
Line 68... Line 71...
68
		setNumImage(0);
71
		setNumImage(0);
69
		imageTable.clear();
72
		imageTable.clear();
70
		panneauxImages.clear();
73
		panneauxImages.clear();
71
	}
74
	}
Line -... Line 75...
-
 
75
 
-
 
76
	protected void chargerPanneauxObservation(List<Observation> observations) {
-
 
77
 
-
 
78
		List<Panel> imagePanels = new ArrayList<Panel>();
-
 
79
		for (int i = 0; i < observations.size(); i++) {
72
 
80
			Panel imagePanel = new VerticalPanel();
73
	protected void addImagePanel(Panel imagePanel) {
81
			imagePanels.add(imagePanel);
-
 
82
			panneauxImages.add(imagePanel);
-
 
83
		}
-
 
84
 
-
 
85
		Iterator<Panel> panelIterator = imagePanels.iterator();
-
 
86
		for (Observation observation : observations) {
-
 
87
			Panel imagePanel = panelIterator.next();
-
 
88
			new ObservationPresenteur(observation).go(imagePanel);
74
		this.panneauxImages.add(imagePanel);
89
		}
Line 75... Line 90...
75
	}
90
	}
76
 
91