445 |
benjamin |
1 |
package org.tela_botanica.del.client.vues.rechercheobservations.resultats;
|
|
|
2 |
|
|
|
3 |
import com.google.gwt.core.client.GWT;
|
|
|
4 |
import com.google.gwt.uibinder.client.UiBinder;
|
|
|
5 |
import com.google.gwt.uibinder.client.UiField;
|
459 |
benjamin |
6 |
import com.google.gwt.user.client.ui.Button;
|
445 |
benjamin |
7 |
import com.google.gwt.user.client.ui.Composite;
|
|
|
8 |
import com.google.gwt.user.client.ui.HasWidgets;
|
|
|
9 |
import com.google.gwt.user.client.ui.Panel;
|
|
|
10 |
import com.google.gwt.user.client.ui.Widget;
|
|
|
11 |
|
|
|
12 |
public class ResultatsRechercheObservationsVue extends Composite implements ResultatsRechercheObservationsPresenteur.Vue {
|
|
|
13 |
|
|
|
14 |
@UiField
|
|
|
15 |
Panel panneauChargement;
|
|
|
16 |
|
|
|
17 |
// Gestion d'UiBinder
|
|
|
18 |
interface Binder extends UiBinder<Widget, ResultatsRechercheObservationsVue> {
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
private static Binder binder = GWT.create(Binder.class);
|
|
|
22 |
|
|
|
23 |
@UiField
|
|
|
24 |
Panel zoneObservations, zonePaginationHaut, zonePaginationBas;
|
|
|
25 |
|
459 |
benjamin |
26 |
@UiField
|
|
|
27 |
Button triParNbVotesAscendant, triParNbVotesDescendant, triParDateAscendant, triParDateDescendant;
|
|
|
28 |
|
445 |
benjamin |
29 |
// Constructeur de la vue
|
|
|
30 |
public ResultatsRechercheObservationsVue() {
|
|
|
31 |
initWidget(binder.createAndBindUi(this));
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
@Override
|
|
|
35 |
public HasWidgets getZoneObservations() {
|
|
|
36 |
return zoneObservations;
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
@Override
|
|
|
40 |
public HasWidgets getZonePaginationHaut() {
|
|
|
41 |
return zonePaginationHaut;
|
|
|
42 |
}
|
|
|
43 |
|
|
|
44 |
@Override
|
|
|
45 |
public HasWidgets getZonePaginationBas() {
|
|
|
46 |
return zonePaginationBas;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
/**
|
|
|
50 |
* Nettoie et remet à zéro les composants du panneau qui doivent l'être
|
|
|
51 |
* */
|
|
|
52 |
@Override
|
|
|
53 |
public void nettoyer() {
|
|
|
54 |
zoneObservations.clear();
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
@Override
|
|
|
58 |
public void startChargement() {
|
|
|
59 |
panneauChargement.setHeight(zoneObservations.getOffsetHeight() + "px");
|
|
|
60 |
panneauChargement.setVisible(true);
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
@Override
|
|
|
64 |
public void stopChargement() {
|
|
|
65 |
panneauChargement.setVisible(false);
|
|
|
66 |
}
|
459 |
benjamin |
67 |
|
|
|
68 |
public Button getTriParNbVotesAscendant() {
|
|
|
69 |
return triParNbVotesAscendant;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public Button getTriParNbVotesDescendant() {
|
|
|
73 |
return triParNbVotesDescendant;
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
public Button getTriParDateAscendant() {
|
|
|
77 |
return triParDateAscendant;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
public Button getTriParDateDescendant() {
|
|
|
81 |
return triParDateDescendant;
|
|
|
82 |
}
|
445 |
benjamin |
83 |
}
|