Line 367... |
Line 367... |
367 |
public void rafraichir(Object nouvelleDonnees,
|
367 |
public void rafraichir(Object nouvelleDonnees,
|
368 |
boolean repandreRafraichissement) {
|
368 |
boolean repandreRafraichissement) {
|
369 |
// si l'on a reçu une liste d'images
|
369 |
// si l'on a reçu une liste d'images
|
370 |
if (nouvelleDonnees instanceof ListeImageCarnet) {
|
370 |
if (nouvelleDonnees instanceof ListeImageCarnet) {
|
371 |
ListeImageCarnet data = (ListeImageCarnet) nouvelleDonnees;
|
371 |
ListeImageCarnet data = (ListeImageCarnet) nouvelleDonnees;
|
372 |
Object[][] photoData = new Object[data.size()][11];
|
372 |
Object[][] photoData = new Object[data.size()][12];
|
373 |
int i = 0;
|
373 |
int i = 0;
|
Line 374... |
Line 374... |
374 |
|
374 |
|
375 |
if (data.size() == 0) {
|
375 |
if (data.size() == 0) {
|
376 |
pageEncours = 0;
|
376 |
pageEncours = 0;
|
Line 377... |
Line 377... |
377 |
}
|
377 |
}
|
378 |
|
378 |
|
379 |
// on la parse et on récupère les informations quiç nous interessent
|
379 |
// on la parse et on récupère les informations quiç nous interessent
|
380 |
for (Iterator<String> it = data.keySet().iterator(); it.hasNext();) {
|
380 |
for (Iterator<String> it = data.keySet().iterator(); it.hasNext();) {
|
- |
|
381 |
ImageCarnet im = data.get(it.next());
|
381 |
ImageCarnet im = data.get(it.next());
|
382 |
photoData[i][0] = im.getOrdre();
|
382 |
photoData[i][0] = im.getOrdre();
|
383 |
photoData[i][1] = im.getNomOriginal();
|
383 |
photoData[i][1] = im.getDate();
|
384 |
photoData[i][2] = im.getDate();
|
384 |
photoData[i][2] = im.getIptcCity();
|
385 |
photoData[i][3] = im.getIptcCity();
|
385 |
photoData[i][3] = im.getMake() + " " + im.getModel();
|
386 |
photoData[i][4] = im.getMake() + " " + im.getModel();
|
386 |
photoData[i][4] = im.getSUrl();
|
387 |
photoData[i][5] = im.getSUrl();
|
387 |
photoData[i][5] = im.getMUrl();
|
388 |
photoData[i][6] = im.getMUrl();
|
388 |
photoData[i][6] = im.getLUrl();
|
389 |
photoData[i][7] = im.getLUrl();
|
389 |
photoData[i][7] = im.getNote();
|
390 |
photoData[i][8] = im.getNote();
|
390 |
photoData[i][8] = im.getId();
|
391 |
photoData[i][9] = im.getId();
|
Line 391... |
Line 392... |
391 |
photoData[i][9] = im.getTailleImage()[1];
|
392 |
photoData[i][10] = im.getTailleImage()[1];
|
392 |
photoData[i][10] = im.getTailleImage()[0];
|
393 |
photoData[i][11] = im.getTailleImage()[0];
|
Line 393... |
Line 394... |
393 |
|
394 |
|
394 |
i++;
|
395 |
i++;
|
- |
|
396 |
}
|
395 |
}
|
397 |
|
396 |
|
398 |
// creation du store qui les contient
|
397 |
// creation du store qui les contient
|
399 |
FieldDef defNumImage = new IntegerFieldDef("num_image");
|
398 |
FieldDef defNumImage = new IntegerFieldDef("num_image");
|
400 |
FieldDef defNomImage = new StringFieldDef("nom_original");
|
399 |
FieldDef defDatImage = new StringFieldDef("dat_image");
|
401 |
FieldDef defDatImage = new StringFieldDef("dat_image");
|
400 |
FieldDef defLieImage = new StringFieldDef("lie_image");
|
402 |
FieldDef defLieImage = new StringFieldDef("lie_image");
|
401 |
FieldDef defAppImage = new StringFieldDef("app_image");
|
403 |
FieldDef defAppImage = new StringFieldDef("app_image");
|
402 |
FieldDef defUrlImageS = new StringFieldDef("url_image_S");
|
404 |
FieldDef defUrlImageS = new StringFieldDef("url_image_S");
|
403 |
FieldDef defUrlImageM = new StringFieldDef("url_image_M");
|
405 |
FieldDef defUrlImageM = new StringFieldDef("url_image_M");
|
404 |
FieldDef defUrlImage = new StringFieldDef("url_image");
|
406 |
FieldDef defUrlImage = new StringFieldDef("url_image");
|
405 |
FieldDef defNoteImage = new IntegerFieldDef("note_image");
|
407 |
FieldDef defNoteImage = new IntegerFieldDef("note_image");
|
406 |
FieldDef defIdImage = new IntegerFieldDef("id_image");
|
408 |
FieldDef defIdImage = new IntegerFieldDef("id_image");
|
407 |
FieldDef defTailleX = new IntegerFieldDef("taille_x");
|
409 |
FieldDef defTailleX = new IntegerFieldDef("taille_x");
|
408 |
FieldDef defTailleY = new IntegerFieldDef("taille_y");
|
410 |
FieldDef defTailleY = new IntegerFieldDef("taille_y");
|
Line 409... |
Line 411... |
409 |
FieldDef[] defTab = { defNumImage, defDatImage, defLieImage,
|
411 |
FieldDef[] defTab = { defNumImage,defNomImage, defDatImage, defLieImage,
|