| Line 1... |
Line 1... |
| 1 |
package org.tela_botanica.client.vues;
|
1 |
package org.tela_botanica.client.vues;
|
| Line 2... |
Line 2... |
| 2 |
|
2 |
|
| 3 |
import org.tela_botanica.client.RegistreId;
|
3 |
import org.tela_botanica.client.RegistreId;
|
| 4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
4 |
import org.tela_botanica.client.interfaces.Rafraichissable;
|
| 5 |
import org.tela_botanica.client.modeles.Structure;
|
5 |
import org.tela_botanica.client.modeles.Structure;
|
| Line 6... |
Line 6... |
| 6 |
import org.tela_botanica.client.modeles.ListeStructure;
|
6 |
import org.tela_botanica.client.modeles.StructureListe;
|
| 7 |
|
7 |
|
| 8 |
import com.extjs.gxt.ui.client.Registry;
|
8 |
import com.extjs.gxt.ui.client.Registry;
|
| 9 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
9 |
import com.extjs.gxt.ui.client.Style.Scroll;
|
| Line 79... |
Line 79... |
| 79 |
}
|
79 |
}
|
| Line 80... |
Line 80... |
| 80 |
|
80 |
|
| 81 |
public void rafraichir(Object nouvelleDonnees) {
|
81 |
public void rafraichir(Object nouvelleDonnees) {
|
| 82 |
if (nouvelleDonnees instanceof Structure) {
|
82 |
if (nouvelleDonnees instanceof Structure) {
|
| 83 |
afficherDetailInstitution((Structure) nouvelleDonnees);
|
83 |
afficherDetailInstitution((Structure) nouvelleDonnees);
|
| 84 |
} else if (nouvelleDonnees instanceof ListeStructure) {
|
84 |
} else if (nouvelleDonnees instanceof StructureListe) {
|
| 85 |
ListeStructure listeInstitutions = (ListeStructure) nouvelleDonnees;
|
85 |
StructureListe listeInstitutions = (StructureListe) nouvelleDonnees;
|
| 86 |
// Test pour savoir si la liste contient des éléments
|
86 |
// Test pour savoir si la liste contient des éléments
|
| 87 |
if (listeInstitutions.size() == 0) {
|
87 |
if (listeInstitutions.size() == 0) {
|
| 88 |
afficherDetailInstitution(null);
|
88 |
afficherDetailInstitution(null);
|
| 89 |
}
|
89 |
}
|