/** Construct a new {@link MobileWebAppShellMobile}. */
  public LoveLicenseShellMobile(
      final EventBus eventBus,
      OrientationHelper orientationHelper,
      MainView mainView,
      MyInfoView myInfoView,
      SajuViewView sajuViewView,
      CurrentSajuView currentSajuView,
      SearchFriendView searchFriendView,
      GuestBookListView guestBookListView,
      GuestBookDetailView guestBookDetailView,
      GuestBookWriteView guestBookWriteView,
      GuestBookEditView guestBookEditView,
      LoveLicenseConstants constants) {

    /*
    titleName = new Label();
    titleName.setText(constants.mainTitle());*/
    // System.out.println("##############"+constants.mainTitle());

    initWidget(uiBinder.createAndBindUi(this));

    /*
     * Add all views to the DeckLayoutPanel so we can animate between them.
     * Using a DeckLayoutPanel here works because we only have a few views, and
     * we always know that the task views should animate in from the right side
     * of the screen. A more complex app will require more complex logic to
     * figure out which direction to animate.
     */
    contentContainer.add(mainView);
    contentContainer.add(guestBookListView);
    contentContainer.add(guestBookDetailView);
    contentContainer.add(guestBookWriteView);
    contentContainer.add(guestBookEditView);
    contentContainer.add(myInfoView);
    contentContainer.add(sajuViewView);
    contentContainer.add(currentSajuView);
    contentContainer.add(searchFriendView);
    contentContainer.setAnimationDuration(500);

    orientationHelper.setCommands(
        this,
        new Command() {
          @Override
          public void execute() {
            onShiftToPortrait();
          }
        },
        new Command() {
          @Override
          public void execute() {
            onShiftToLandscape();
          }
        });

    // Return to the task list when the title is clicked.
    titleBar.addDomHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            ActionEvent.fire(eventBus, ActionNames.GO_HOME);
          }
        },
        ClickEvent.getType());
  }