Beispiel #1
0
  public void resetCaseStudy() throws ThinklabException {

    storylineViews.clear();
    currentStoryline = null;

    /*
     * reset ROI and all modules
     */
    userModel.clearAnalysis();

    /*
     * ask the user model to give us all the modules we have access to.
     */
    userModel.initializeModules();

    moduleViews.clear();
    sidebar.resetModules();
    createModuleViews();

    /*
     * restore interface
     */
    selectionBar.setVisible(true);
    selectionBar.idle(false);
    gazetteer.setValue("");
    getBanner().setStoryline(null);

    ZK.resetComponent(this.storyline);

    this.storyline.setVisible(false);
    this.mapwindow.setVisible(true);

    browserState = 0;
    sidebar.redisplay();
  }
Beispiel #2
0
  @Override
  public void postInitialize() {

    userModel.initializeModules();
    createModuleViews();
    sidebar.afterCompose();
    sidebar.redisplay();
    statusbar.initialize();
    start(); // get ready to process messages
  }
Beispiel #3
0
  /*
   * Called through reflection to refresh all components that have to do with the
   * associated storyline.
   */
  public void refreshStoryline(String c) {

    Storyline ss = userModel.getStoryline().findStoryline(c);

    sidebar.redisplay();
    if (currentStoryline != null && ss.equals(currentStoryline)) {
      currentStoryline = null;
      showStoryline(ss, null);
    }
  }