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); } }
public void resetChart() { this.currentTabShareList = new ArrayList<SlidingPortfolioShare>(); getHightlitedEventModel().resetOtherViewParams(); setHighligtedId(null); chartDisplayStrategy.resetChart(true); }