01: /*
02: * MyGWT Widget Library
03: * Copyright(c) 2007, MyGWT.
04: * licensing@mygwt.net
05: *
06: * http://mygwt.net/license
07: */
08: package net.mygwt.ui.client.mvc;
09:
10: import java.util.EventListener;
11:
12: /**
13: * Event interface for dispatcher events.
14: */
15: public interface DispatcherListener extends EventListener {
16:
17: /**
18: * Fires before an event is dispatched. Listeners can set the
19: * <code>doit</code> field to <code>false</code> to cancel the action.
20: *
21: * @param ae the app event to be dispatched
22: */
23: public void beforeDispatch(AppEvent ae);
24:
25: /**
26: * Fires after an event has been dispatched.
27: *
28: * @param ae the event that was dispatched
29: */
30: public void afterDispatch(AppEvent ae);
31:
32: }
|