コード例 #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());
  }
コード例 #2
0
ファイル: NoScenario.java プロジェクト: hegerchr/SoPeCo-WebUI
 @Override
 public void callback(Object object) {
   addMEController();
   MainLayoutPanel.get().getNorthPanel().updateScenarioList();
   ScenarioManager.get().switchScenario(Manager.get().getAccountDetails().getSelectedScenario());
 }