View Javadoc

1   /**
2    * 
3    */
4   package org.appfuse.webapp.client.ui.home;
5   
6   import org.appfuse.webapp.client.application.Application;
7   import org.appfuse.webapp.client.application.base.activity.AbstractBaseActivity;
8   
9   import com.google.gwt.event.shared.EventBus;
10  import com.google.gwt.user.client.ui.AcceptsOneWidget;
11  import com.google.inject.Inject;
12  
13  /**
14   * @author ivangsa
15   *
16   */
17  public class HomeActivity extends AbstractBaseActivity {
18  
19      private final HomeView view;
20  
21      @Inject
22      public HomeActivity(final Application application, final HomeView view) {
23          super(application);
24          this.view = view;
25          setTitle(i18n.home_title());
26          setBodyId("home");
27          setBodyClassname("home");
28      }
29  
30      /*
31       * (non-Javadoc)
32       * 
33       * @see
34       * com.google.gwt.activity.shared.Activity#start(com.google.gwt.user.client
35       * .ui.AcceptsOneWidget, com.google.gwt.event.shared.EventBus)
36       */
37      @Override
38      public void start(final AcceptsOneWidget panel, final EventBus eventBus) {
39          panel.setWidget(view);
40          setDocumentTitleAndBodyAttributtes();
41      }
42  
43  }