Subversion Repositories eFlore/Applications.del

Rev

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

Rev 32 Rev 86
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;
-
 
4
import java.util.Iterator;
3
import java.util.ArrayList;
Line 5... Line 4...
5
import java.util.List;
4
import java.util.List;
Line 6... Line 5...
6
 
5
 
Line 71... Line 70...
71
		setNumImage(0);
70
		setNumImage(0);
72
		imageTable.clear();
71
		imageTable.clear();
73
		panneauxImages.clear();
72
		panneauxImages.clear();
74
	}
73
	}
Line 75... Line 74...
75
 
74
 
Line 76... Line -...
76
	protected void chargerPanneauxObservation(List<Observation> observations) {
-
 
77
 
75
	protected void creerPanneauxObservation(List<Observation> observations) {
78
		List<Panel> imagePanels = new ArrayList<Panel>();
76
 
79
		for (int i = 0; i < observations.size(); i++) {
-
 
80
			Panel imagePanel = new VerticalPanel();
77
		for (int i = 0; i < observations.size(); i++) {
81
			imagePanels.add(imagePanel);
78
			Panel imagePanel = new VerticalPanel();
Line 82... Line -...
82
			panneauxImages.add(imagePanel);
-
 
83
		}
-
 
84
 
-
 
85
		Iterator<Panel> panelIterator = imagePanels.iterator();
-
 
86
		for (Observation observation : observations) {
-
 
87
			Panel imagePanel = panelIterator.next();
79
			panneauxImages.add(imagePanel);
Line 88... Line 80...
88
			new ObservationPresenteur(observation).go(imagePanel);
80
		}
89
		}
81
 
Line 147... Line 139...
147
 
139
 
148
	public Panel getPanel() {
140
	public Panel getPanel() {
149
		return mainPanel;
141
		return mainPanel;
Line -... Line 142...
-
 
142
	}
-
 
143
 
-
 
144
	public List<Panel> getPanneauxImages() {
-
 
145
		return panneauxImages;
150
	}
146
	}