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