protected void switchView(AbstractPage page, String mainMenuActive, String subMenuActive) {
   currentPage = page;
   mainWindow.setMainNavigation(mainMenuActive);
   mainWindow.switchView(page);
   if (subMenuActive != null && page.getToolBar() != null) {
     page.getToolBar()
         .setActiveEntry(
             subMenuActive); // Must be set AFTER adding page to window (toolbar will be created in
                             // atach())
   }
 }
 public void showPopupWindow(Window window) {
   mainWindow.addWindow(window);
 }
 public void showDefaultPage() {
   mainWindow.showDefaultContent();
   showInboxPage();
 }
 public void showLoginPage() {
   if (!mainWindow.isShowingLoginPage()) {
     mainWindow.showLoginPage();
   }
 }