Subversion Repositories eFlore/Applications.del

Rev

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

Rev 55 Rev 56
Line 9... Line 9...
9
import org.tela_botanica.del.client.exceptions.ExceptionClient;
9
import org.tela_botanica.del.client.exceptions.ExceptionClient;
10
import org.tela_botanica.del.client.modeles.Observation;
10
import org.tela_botanica.del.client.modeles.Observation;
11
import org.tela_botanica.del.client.modeles.ObservationDetermination;
11
import org.tela_botanica.del.client.modeles.ObservationDetermination;
12
import org.tela_botanica.del.client.modeles.ObservationValidation;
12
import org.tela_botanica.del.client.modeles.ObservationValidation;
Line -... Line 13...
-
 
13
 
-
 
14
import com.google.gwt.i18n.client.DateTimeFormat;
-
 
15
import com.google.gwt.i18n.client.DateTimeFormat.PredefinedFormat;
13
 
16
 
Line 14... Line 17...
14
public class MockDatasource {
17
public class MockDatasource {
Line 15... Line 18...
15
 
18
 
Line 58... Line 61...
58
 
61
 
59
			int numobs = 44120 + i;
62
			int numobs = 44120 + i;
60
			observation.setUrl("http://www.tela-botanica.org/appli:cel-img:0000" + String.valueOf(numobs) + "CRS.jpg");
63
			observation.setUrl("http://www.tela-botanica.org/appli:cel-img:0000" + String.valueOf(numobs) + "CRS.jpg");
61
			observation.setNumNomenclatural("num nomenclatural " + i);
64
			observation.setNumNomenclatural("num nomenclatural " + i);
62
			observation.setIdImage("id image " + i);
65
			observation.setIdImage("id image " + i);
63
			observation.setDate(new Date().toString());
66
			observation.setDate(DateTimeFormat.getFormat(PredefinedFormat.DATE_SHORT).format(new Date()));
64
			observation.setFamille("famille " + i);
67
			observation.setFamille("famille " + i);
65
			observation.setLocalite("localite " + i);
68
			observation.setLocalite("localite " + i);
Line 66... Line 69...
66
			observation.setNomRetenu("nom retenu " + i);
69
			observation.setNomRetenu("nom retenu " + i);