Beispiel #1
0
  void updateCharts(Boolean grantEventsUpdate) {

    stripedCloseFunction.updateStartDate(slidingStartDate);
    stripedCloseFunction.updateEndDate(slidingEndDate);

    int previousSelection = retreivePreviousSelection();
    if (previousSelection != -1) {
      getHightlitedEventModel()
          .setViewParamRoot(getCurrentTabShareList().get(previousSelection).getStock());
      setHighligtedId(previousSelection);
    } else {
      getHightlitedEventModel().resetOtherViewParams();
      setHighligtedId(null);
    }
    chartDisplayStrategy.resetChart(false);

    Stock viewStateParams = hightlitedEventModel.getViewParamRoot();
    if (viewStateParams != null) {
      chartDisplayStrategy.highLight(getHighligtedId(), viewStateParams, grantEventsUpdate);
    }
  }
Beispiel #2
0
 public void resetChart() {
   this.currentTabShareList = new ArrayList<SlidingPortfolioShare>();
   getHightlitedEventModel().resetOtherViewParams();
   setHighligtedId(null);
   chartDisplayStrategy.resetChart(true);
 }