2211 |
arthur |
1 |
package org.tela_botanica.del.client.navigation.evenement.validationobservation;
|
|
|
2 |
|
|
|
3 |
import org.tela_botanica.del.client.modeles.Observation;
|
|
|
4 |
|
|
|
5 |
import com.google.gwt.event.shared.GwtEvent;
|
|
|
6 |
|
|
|
7 |
public class EvenementValidation extends GwtEvent<GestionnaireEvenementValidation> {
|
|
|
8 |
|
|
|
9 |
public static com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementValidation> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementValidation>();
|
|
|
10 |
private final Observation observation;
|
|
|
11 |
|
|
|
12 |
public EvenementValidation(Observation observation) {
|
|
|
13 |
this.observation = observation;
|
|
|
14 |
}
|
|
|
15 |
|
|
|
16 |
@Override
|
|
|
17 |
protected void dispatch(GestionnaireEvenementValidation handler) {
|
|
|
18 |
handler.onValidationObservation(this);
|
|
|
19 |
}
|
|
|
20 |
|
|
|
21 |
@Override
|
|
|
22 |
public com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementValidation> getAssociatedType() {
|
|
|
23 |
return TYPE;
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
public Observation getObservation() {
|
|
|
27 |
return observation;
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
}
|