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.samples.mail.client;
09:
10: import net.mygwt.ui.client.mvc.AppEvent;
11: import net.mygwt.ui.client.mvc.Controller;
12:
13: public class AppController extends Controller {
14:
15: private AppView appView;
16:
17: public AppController() {
18: registerEventType(AppEvents.Init);
19: }
20:
21: public void handleEvent(AppEvent event) {
22: if (event.type == AppEvents.Init) {
23: forwardToView(appView, event);
24: }
25: }
26:
27: public void initialize() {
28: appView = new AppView(this);
29: }
30:
31: }
|