Line 71... |
Line 71... |
71 |
*/
|
71 |
*/
|
72 |
private ColumnConfig etatObservation;
|
72 |
private ColumnConfig etatObservation;
|
73 |
private ColumnConfig referentielTaxoObservation;
|
73 |
private ColumnConfig referentielTaxoObservation;
|
74 |
private ColumnConfig nomSaisiObservation;
|
74 |
private ColumnConfig nomSaisiObservation;
|
75 |
private ColumnConfig nomRetenuObservation;
|
75 |
private ColumnConfig nomRetenuObservation;
|
- |
|
76 |
private ColumnConfig familleObservation;
|
76 |
private ColumnConfig lieuObservation;
|
77 |
private ColumnConfig lieuObservation;
|
77 |
private ColumnConfig altitudeObservation;
|
78 |
private ColumnConfig altitudeObservation;
|
78 |
private ColumnConfig dateObservation;
|
79 |
private ColumnConfig dateObservation;
|
79 |
private ColumnConfig ordreObservation;
|
80 |
private ColumnConfig ordreObservation;
|
80 |
private ColumnConfig abondanceObservation;
|
81 |
private ColumnConfig abondanceObservation;
|
Line 288... |
Line 289... |
288 |
});
|
289 |
});
|
Line 289... |
Line 290... |
289 |
|
290 |
|
290 |
referentielTaxoObservation = new ColumnConfig("Référentiel", "referentiel_taxo_observation", 15, true, colRend);
|
291 |
referentielTaxoObservation = new ColumnConfig("Référentiel", "referentiel_taxo_observation", 15, true, colRend);
|
291 |
nomSaisiObservation = new ColumnConfig("Nom saisi", "nomSaisi_observation", 130, true, colRend);
|
292 |
nomSaisiObservation = new ColumnConfig("Nom saisi", "nomSaisi_observation", 130, true, colRend);
|
- |
|
293 |
nomRetenuObservation = new ColumnConfig("Nom retenu", "nomRetenu_observation", 130, true, colRend);
|
292 |
nomRetenuObservation = new ColumnConfig("Nom retenu", "nomRetenu_observation", 130, true, colRend);
|
294 |
familleObservation = new ColumnConfig("Famille", "famille_observation", 50, true, colRend);
|
293 |
lieuObservation = new ColumnConfig("Lieu", "lieu_observation", 130, true, colRend);
|
295 |
lieuObservation = new ColumnConfig("Lieu", "lieu_observation", 130, true, colRend);
|
294 |
altitudeObservation = new ColumnConfig("Alt", "altitude_observation", 10, true, colRend);
|
296 |
altitudeObservation = new ColumnConfig("Alt", "altitude_observation", 10, true, colRend);
|
295 |
dateObservation = new ColumnConfig("Date", "date_observation", 70, true, dateRend);
|
297 |
dateObservation = new ColumnConfig("Date", "date_observation", 70, true, dateRend);
|
296 |
abondanceObservation = new ColumnConfig("Abondance", "abondance", 50, true, colRend);
|
298 |
abondanceObservation = new ColumnConfig("Abondance", "abondance", 50, true, colRend);
|
Line 303... |
Line 305... |
303 |
|
305 |
|
304 |
});
|
306 |
});
|
305 |
phenologieObservation = new ColumnConfig("Phénologie", "phenologie", 40, true, colRend);
|
307 |
phenologieObservation = new ColumnConfig("Phénologie", "phenologie", 40, true, colRend);
|
306 |
ordreObservation = new ColumnConfig("Ordre", "ordre_observation", 70, true, colRend);
|
308 |
ordreObservation = new ColumnConfig("Ordre", "ordre_observation", 70, true, colRend);
|
307 |
ColumnConfig[] cm = {etatObservation, referentielTaxoObservation,
|
309 |
ColumnConfig[] cm = {etatObservation, referentielTaxoObservation,
|
308 |
nomSaisiObservation, certitudeObservation,
|
310 |
nomSaisiObservation, certitudeObservation,
|
309 |
nomRetenuObservation, abondanceObservation,
|
311 |
nomRetenuObservation, familleObservation,
|
310 |
phenologieObservation, lieuObservation,
|
312 |
abondanceObservation, phenologieObservation,
|
311 |
altitudeObservation, dateObservation,
|
313 |
lieuObservation, altitudeObservation,
|
Line 312... |
Line 314... |
312 |
ordreObservation};
|
314 |
dateObservation, ordreObservation};
|
313 |
|
315 |
|
Line 555... |
Line 557... |
555 |
public void rafraichir(Object nouvelleDonnees, boolean repandreRafraichissement) {
|
557 |
public void rafraichir(Object nouvelleDonnees, boolean repandreRafraichissement) {
|
556 |
// si l'on a reçu une liste d'observation
|
558 |
// si l'on a reçu une liste d'observation
|
557 |
if(nouvelleDonnees instanceof ListeObservation)
|
559 |
if(nouvelleDonnees instanceof ListeObservation)
|
558 |
{
|
560 |
{
|
559 |
ListeObservation data = (ListeObservation) nouvelleDonnees ;
|
561 |
ListeObservation data = (ListeObservation) nouvelleDonnees ;
|
560 |
Object[][] observationData = new Object[data.size()][12];
|
562 |
Object[][] observationData = new Object[data.size()][13];
|
561 |
int i = 0 ;
|
563 |
int i = 0 ;
|
Line 562... |
Line 564... |
562 |
|
564 |
|
563 |
if(data.size() == 0)
|
565 |
if(data.size() == 0)
|
564 |
{
|
566 |
{
|
Line 574... |
Line 576... |
574 |
observationData[i][0] = obs.getTransmis();
|
576 |
observationData[i][0] = obs.getTransmis();
|
575 |
observationData[i][1] = obs.getCodeCourtReferentielTaxo();
|
577 |
observationData[i][1] = obs.getCodeCourtReferentielTaxo();
|
576 |
observationData[i][2] = obs.getNomSaisi();
|
578 |
observationData[i][2] = obs.getNomSaisi();
|
577 |
observationData[i][3] = obs.getCertitude();
|
579 |
observationData[i][3] = obs.getCertitude();
|
578 |
observationData[i][4] = obs.getNomRetenu();
|
580 |
observationData[i][4] = obs.getNomRetenu();
|
- |
|
581 |
observationData[i][5] = obs.getFamille();
|
579 |
observationData[i][5] = obs.getAbondance();
|
582 |
observationData[i][6] = obs.getAbondance();
|
580 |
observationData[i][6] = obs.getPhenologie();
|
583 |
observationData[i][7] = obs.getPhenologie();
|
581 |
observationData[i][7] = Util.formaterLieu(obs, modeleLieu);
|
584 |
observationData[i][8] = Util.formaterLieu(obs, modeleLieu);
|
582 |
observationData[i][8] = formaterAltitude(obs.getAltitude());
|
585 |
observationData[i][9] = formaterAltitude(obs.getAltitude());
|
583 |
observationData[i][9] = obs.getDate();
|
586 |
observationData[i][10] = obs.getDate();
|
584 |
observationData[i][10] = obs.getNumeroOrdre();
|
587 |
observationData[i][11] = obs.getNumeroOrdre();
|
585 |
observationData[i][11] = obs.getNumeroNomenclaturalSaisi();
|
588 |
observationData[i][12] = obs.getNumeroNomenclaturalSaisi();
|
Line 586... |
Line 589... |
586 |
|
589 |
|
587 |
i++ ;
|
590 |
i++ ;
|
Line 588... |
Line 591... |
588 |
}
|
591 |
}
|
Line 679... |
Line 682... |
679 |
FieldDef defEtatObservation = new StringFieldDef("etat_observation");
|
682 |
FieldDef defEtatObservation = new StringFieldDef("etat_observation");
|
680 |
FieldDef defRefTaxObservation = new StringFieldDef("referentiel_taxo_observation");
|
683 |
FieldDef defRefTaxObservation = new StringFieldDef("referentiel_taxo_observation");
|
681 |
FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
|
684 |
FieldDef defNomSaisiObservation = new StringFieldDef("nomSaisi_observation");
|
682 |
FieldDef defCertitudeObservation = new StringFieldDef("certitude");
|
685 |
FieldDef defCertitudeObservation = new StringFieldDef("certitude");
|
683 |
FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
|
686 |
FieldDef defNomRetenuObservation = new StringFieldDef("nomRetenu_observation");
|
- |
|
687 |
FieldDef defFamilleObservation = new StringFieldDef("famille_observation");
|
684 |
FieldDef defAbondanceObservation = new StringFieldDef("abondance");
|
688 |
FieldDef defAbondanceObservation = new StringFieldDef("abondance");
|
685 |
FieldDef defPhenologieObservation = new StringFieldDef("phenologie");
|
689 |
FieldDef defPhenologieObservation = new StringFieldDef("phenologie");
|
686 |
FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
|
690 |
FieldDef defLieuObservation = new StringFieldDef("lieu_observation");
|
687 |
FieldDef defAltObservation = new StringFieldDef("altitude_observation");
|
691 |
FieldDef defAltObservation = new StringFieldDef("altitude_observation");
|
688 |
FieldDef defDateObservation = new StringFieldDef("date_observation");
|
692 |
FieldDef defDateObservation = new StringFieldDef("date_observation");
|
689 |
FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
|
693 |
FieldDef defOrdreObservation = new IntegerFieldDef("ordre_observation");
|
Line 690... |
Line 694... |
690 |
|
694 |
|
691 |
// Non affiches :
|
695 |
// Non affiches :
|
Line 692... |
Line 696... |
692 |
FieldDef defNumeroNomenclaturalSaisiObservation = new StringFieldDef("numeroNomenclaturalSaisi_observation");
|
696 |
FieldDef defNumeroNomenclaturalSaisiObservation = new StringFieldDef("numeroNomenclaturalSaisi_observation");
|
693 |
|
697 |
|
Line 694... |
Line 698... |
694 |
FieldDef[] defTab = {defEtatObservation, defRefTaxObservation,defNomSaisiObservation, defCertitudeObservation, defNomRetenuObservation, defAbondanceObservation,
|
698 |
FieldDef[] defTab = {defEtatObservation, defRefTaxObservation,defNomSaisiObservation, defCertitudeObservation, defNomRetenuObservation, defFamilleObservation, defAbondanceObservation,
|
695 |
defPhenologieObservation, defLieuObservation, defAltObservation, defDateObservation, defOrdreObservation, defNumeroNomenclaturalSaisiObservation };
|
699 |
defPhenologieObservation, defLieuObservation, defAltObservation, defDateObservation, defOrdreObservation, defNumeroNomenclaturalSaisiObservation };
|