Example #1
0
  /**
   * Initialize/reset the main view of the application.
   *
   * @param newConnectedDatabase the database of the current connection.
   */
  public void initializeMainView(String accountName) {
    connectedAccountName = accountName;

    ScenarioManager.clear();
    MainLayoutPanel.destroy();

    RootLayoutPanel rootLayoutPanel = RootLayoutPanel.get();
    rootLayoutPanel.clear();
    rootLayoutPanel.add(MainLayoutPanel.get());
  }
Example #2
0
 @Override
 public void callback(Object object) {
   addMEController();
   MainLayoutPanel.get().getNorthPanel().updateScenarioList();
   ScenarioManager.get().switchScenario(Manager.get().getAccountDetails().getSelectedScenario());
 }