178 |
benjamin |
1 |
package org.tela_botanica.del.client.navigation.evenement.changementprotocole;
|
|
|
2 |
|
|
|
3 |
import org.tela_botanica.del.client.modeles.Protocole;
|
|
|
4 |
|
|
|
5 |
import com.google.gwt.event.shared.GwtEvent;
|
|
|
6 |
|
|
|
7 |
public class EvenementChangementProtocole extends GwtEvent<GestionnaireEvenementChangementProtocole> {
|
|
|
8 |
|
|
|
9 |
public static com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementChangementProtocole> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementChangementProtocole>();
|
|
|
10 |
|
|
|
11 |
private Protocole protocole;
|
|
|
12 |
|
|
|
13 |
public EvenementChangementProtocole(Protocole protocole) {
|
|
|
14 |
this.protocole = protocole;
|
|
|
15 |
}
|
|
|
16 |
|
|
|
17 |
@Override
|
|
|
18 |
protected void dispatch(GestionnaireEvenementChangementProtocole handler) {
|
|
|
19 |
handler.onChangementProtocole(this);
|
|
|
20 |
}
|
|
|
21 |
|
|
|
22 |
@Override
|
|
|
23 |
public com.google.gwt.event.shared.GwtEvent.Type<GestionnaireEvenementChangementProtocole> getAssociatedType() {
|
|
|
24 |
return TYPE;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
public Protocole getProtocole() {
|
|
|
28 |
return protocole;
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
public void setProtocole(Protocole protocole) {
|
|
|
32 |
this.protocole = protocole;
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
}
|