1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.tapas.evidence.fe.teacher;
20
21 import org.vaadin.mvp.eventbus.EventBus;
22 import org.vaadin.mvp.eventbus.annotation.Event;
23
24 import com.tapas.evidence.fe.main.MainPresenter;
25 import com.vaadin.event.ItemClickEvent;
26 import com.vaadin.ui.Window;
27
28
29
30
31
32 public interface TeacherEventBus extends EventBus {
33
34 @Event(handlers = { TeacherPresenter.class })
35 void addTeacher();
36
37 @Event(handlers = { TeacherPresenter.class })
38 void removeTeacher();
39
40 @Event(handlers = { MainPresenter.class })
41 void showDialog(Window dialog);
42
43 @Event(handlers = { TeacherPresenter.class })
44 void saveTeacher();
45
46 @Event(handlers = { TeacherPresenter.class })
47 void cancelEditTeacher();
48
49 @Event(handlers = { TeacherPresenter.class })
50 void editTeacher(ItemClickEvent event);
51 }