Line 69... |
Line 69... |
69 |
private ColumnConfig etatObservation;
|
69 |
private ColumnConfig etatObservation;
|
70 |
private ColumnConfig referentielTaxoObservation;
|
70 |
private ColumnConfig referentielTaxoObservation;
|
71 |
private ColumnConfig nomSaisiObservation;
|
71 |
private ColumnConfig nomSaisiObservation;
|
72 |
private ColumnConfig nomRetenuObservation;
|
72 |
private ColumnConfig nomRetenuObservation;
|
73 |
private ColumnConfig lieuObservation;
|
73 |
private ColumnConfig lieuObservation;
|
- |
|
74 |
private ColumnConfig altitudeObservation;
|
74 |
private ColumnConfig dateObservation;
|
75 |
private ColumnConfig dateObservation;
|
75 |
private ColumnConfig ordreObservation;
|
76 |
private ColumnConfig ordreObservation;
|
76 |
private ColumnConfig abondanceObservation;
|
77 |
private ColumnConfig abondanceObservation;
|
77 |
private ColumnConfig certitudeObservation;
|
78 |
private ColumnConfig certitudeObservation;
|
78 |
private ColumnModel modeleColonnes;
|
79 |
private ColumnModel modeleColonnes;
|
Line 276... |
Line 277... |
276 |
return "" ;
|
277 |
return "" ;
|
277 |
}
|
278 |
}
|
278 |
}
|
279 |
}
|
Line 279... |
Line 280... |
279 |
|
280 |
|
- |
|
281 |
});
|
280 |
});
|
282 |
|
281 |
referentielTaxoObservation = new ColumnConfig("Référentiel", "referentiel_taxo_observation", 15, true, colRend);
|
283 |
referentielTaxoObservation = new ColumnConfig("Référentiel", "referentiel_taxo_observation", 15, true, colRend);
|
282 |
nomSaisiObservation = new ColumnConfig("Nom saisi", "nomSaisi_observation", 130, true, colRend);
|
284 |
nomSaisiObservation = new ColumnConfig("Nom saisi", "nomSaisi_observation", 130, true, colRend);
|
283 |
nomRetenuObservation = new ColumnConfig("Nom retenu", "nomRetenu_observation", 130, true, colRend);
|
285 |
nomRetenuObservation = new ColumnConfig("Nom retenu", "nomRetenu_observation", 130, true, colRend);
|
- |
|
286 |
lieuObservation = new ColumnConfig("Lieu", "lieu_observation", 130, true, colRend);
|
284 |
lieuObservation = new ColumnConfig("Lieu", "lieu_observation", 130, true, colRend);
|
287 |
altitudeObservation = new ColumnConfig("Alt", "altitude_observation", 10, true, colRend);
|
285 |
dateObservation = new ColumnConfig("Date", "date_observation", 70, true, dateRend);
|
288 |
dateObservation = new ColumnConfig("Date", "date_observation", 70, true, dateRend);
|
286 |
abondanceObservation = new ColumnConfig("Abondance", "abondance", 50, true, colRend);
|
289 |
abondanceObservation = new ColumnConfig("Abondance", "abondance", 50, true, colRend);
|
287 |
certitudeObservation = new ColumnConfig("Identification", "certitude", 50, true, new Renderer() {
|
290 |
certitudeObservation = new ColumnConfig("Identification", "certitude", 50, true, new Renderer() {
|
288 |
@Override
|
291 |
@Override
|
Line 292... |
Line 295... |
292 |
}
|
295 |
}
|
Line 293... |
Line 296... |
293 |
|
296 |
|
294 |
});
|
297 |
});
|
295 |
phenologieObservation = new ColumnConfig("Phénologie", "phenologie", 40, true, colRend);
|
298 |
phenologieObservation = new ColumnConfig("Phénologie", "phenologie", 40, true, colRend);
|
296 |
ordreObservation = new ColumnConfig("Ordre", "ordre_observation", 70, true, colRend);
|
299 |
ordreObservation = new ColumnConfig("Ordre", "ordre_observation", 70, true, colRend);
|
- |
|
300 |
ColumnConfig[] cm = {etatObservation, referentielTaxoObservation,
|
- |
|
301 |
nomSaisiObservation, certitudeObservation,
|
- |
|
302 |
nomRetenuObservation, abondanceObservation,
|
- |
|
303 |
phenologieObservation, lieuObservation,
|
- |
|
304 |
altitudeObservation, dateObservation,
|
Line 297... |
Line 305... |
297 |
ColumnConfig[] cm = {etatObservation, referentielTaxoObservation, nomSaisiObservation, certitudeObservation, nomRetenuObservation, abondanceObservation, phenologieObservation, lieuObservation, dateObservation, ordreObservation};
|
305 |
ordreObservation};
|
298 |
|
306 |
|
Line 540... |
Line 548... |
540 |
public void rafraichir(Object nouvelleDonnees, boolean repandreRafraichissement) {
|
548 |
public void rafraichir(Object nouvelleDonnees, boolean repandreRafraichissement) {
|
541 |
// si l'on a reçu une liste d'observation
|
549 |
// si l'on a reçu une liste d'observation
|
542 |
if(nouvelleDonnees instanceof ListeObservation)
|
550 |
if(nouvelleDonnees instanceof ListeObservation)
|
543 |
{
|
551 |
{
|
544 |
ListeObservation data = (ListeObservation) nouvelleDonnees ;
|
552 |
ListeObservation data = (ListeObservation) nouvelleDonnees ;
|
545 |
Object[][] observationData = new Object[data.size()][11];
|
553 |
Object[][] observationData = new Object[data.size()][12];
|
546 |
int i = 0 ;
|
554 |
int i = 0 ;
|
Line 547... |
Line 555... |
547 |
|
555 |
|
548 |
if(data.size() == 0)
|
556 |
if(data.size() == 0)
|
549 |
{
|
557 |
{
|
Line 562... |
Line 570... |
562 |
observationData[i][3] = obs.getCertitude();
|
570 |
observationData[i][3] = obs.getCertitude();
|
563 |
observationData[i][4] = obs.getNomRetenu();
|
571 |
observationData[i][4] = obs.getNomRetenu();
|
564 |
observationData[i][5] = obs.getAbondance();
|
572 |
observationData[i][5] = obs.getAbondance();
|
565 |
observationData[i][6] = obs.getPhenologie();
|
573 |
observationData[i][6] = obs.getPhenologie();
|
566 |
observationData[i][7] = Util.formaterLieu(obs, modeleLieu);
|
574 |
observationData[i][7] = Util.formaterLieu(obs, modeleLieu);
|
- |
|
575 |
observationData[i][8] = formaterAltitude(obs.getAltitude());
|
567 |
observationData[i][8] = obs.getDate();
|
576 |
observationData[i][9] = obs.getDate();
|
568 |
observationData[i][9] = obs.getNumeroOrdre();
|
577 |
observationData[i][10] = obs.getNumeroOrdre();
|
569 |
observationData[i][10] = obs.getNumeroNomenclaturalSaisi();
|
578 |
observationData[i][11] = obs.getNumeroNomenclaturalSaisi();
|
Line 570... |
Line 579... |
570 |
|
579 |
|
571 |
i++ ;
|
580 |
i++ ;
|
Line 572... |
Line 581... |
572 |
}
|
581 |
}
|
Line 645... |
Line 654... |
645 |
setTailleInitialisee();
|
654 |
setTailleInitialisee();
|
646 |
}
|
655 |
}
|
647 |
}
|
656 |
}
|
648 |
}
|
657 |
}
|
Line -... |
Line 658... |
- |
|
658 |
|
- |
|
659 |
private String formaterAltitude(String alt) {
|
- |
|
660 |
String alfFmt = Util.formaterNombre(alt);
|
- |
|
661 |
if(!alfFmt.isEmpty() && !Util.estZero(alfFmt)) {
|
- |
|
662 |
alfFmt = alfFmt+" m.";
|
- |
|
663 |
}
|
- |
|
664 |
return alfFmt;
|
- |
|
665 |
}
|
649 |
|
666 |
|
650 |
private FieldDef[] getDefinitionChamps() {
|
667 |
private FieldDef[] getDefinitionChamps() {
|
651 |
// creation du store qui les contient
|
668 |
// creation du store qui les contient
|
652 |
FieldDef defEtatObservation = new StringFieldDef("etat_observation");
|
669 |
FieldDef defEtatObservation = new StringFieldDef("etat_observation");
|
653 |
FieldDef defRefTaxObservation = new StringFieldDef("referentiel_taxo_observation");
|
670 |
FieldDef defRefTaxObservation = new StringFieldDef("referentiel_taxo_observation");
|
654 |
FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
|
671 |
FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
|
655 |
FieldDef defCertitudeObservation = new StringFieldDef("certitude");
|
672 |
FieldDef defCertitudeObservation = new StringFieldDef("certitude");
|
656 |
FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
|
673 |
FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
|
657 |
FieldDef defAbondanceObservation = new StringFieldDef("abondance");
|
674 |
FieldDef defAbondanceObservation = new StringFieldDef("abondance");
|
658 |
FieldDef defPhenologieObservation = new StringFieldDef("phenologie");
|
675 |
FieldDef defPhenologieObservation = new StringFieldDef("phenologie");
|
- |
|
676 |
FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
|
659 |
FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
|
677 |
FieldDef defAltObservation = new StringFieldDef("altitude_observation");
|
660 |
FieldDef defDateObservation = new StringFieldDef("date_observation");
|
678 |
FieldDef defDateObservation = new StringFieldDef("date_observation");
|
Line 661... |
Line 679... |
661 |
FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
|
679 |
FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
|
662 |
|
680 |
|
Line 663... |
Line 681... |
663 |
// Non affiches :
|
681 |
// Non affiches :
|
664 |
FieldDef defNumeroNomenclaturalSaisiObservation = new StringFieldDef("numeroNomenclaturalSaisi_observation");
|
682 |
FieldDef defNumeroNomenclaturalSaisiObservation = new StringFieldDef("numeroNomenclaturalSaisi_observation");
|
Line 665... |
Line 683... |
665 |
|
683 |
|
666 |
FieldDef[] defTab = {defEtatObservation, defRefTaxObservation,defNomSaisiObservation, defCertitudeObservation, defNomRetenuObservation, defAbondanceObservation,
|
684 |
FieldDef[] defTab = {defEtatObservation, defRefTaxObservation,defNomSaisiObservation, defCertitudeObservation, defNomRetenuObservation, defAbondanceObservation,
|