@Override public void refreshView(List<Exception> exceptions) { EventDefinition.refreshMaxPassPrefsEventInfo(); Stock viewStateParams = hightlitedEventModel.getViewParamRoot(); if (viewStateParams != null) { checkChartSelectionValidity(); chartDisplayStrategy.highLight(highligtedId, viewStateParams, false); } chartDisplayStrategy.refreshView(exceptions); if (isVisible()) { Shell[] childrenShells = this.getShell().getShells(); for (Shell child : childrenShells) { if (child.getText().contains("Warning")) child.forceActive(); } } }
@Override public void endRefreshAction(List<Exception> exceptions) { chartDisplayStrategy.endRefreshAction(exceptions); try { logComposite.endJob(exceptions); } finally { getParent().getParent().setCursor(CursorFactory.getCursor(SWT.CURSOR_ARROW)); } }
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 highLight(Integer idx, Stock selectedShare, Boolean recalculationGranted) { chartDisplayStrategy.highLight(idx, selectedShare, recalculationGranted); }
public void resetChart() { this.currentTabShareList = new ArrayList<SlidingPortfolioShare>(); getHightlitedEventModel().resetOtherViewParams(); setHighligtedId(null); chartDisplayStrategy.resetChart(true); }
private void updateButtonsToolTips(ChartDisplayStrategy chartDisplayStrategy) { chartDisplayStrategy.updateButtonsToolTips(); }
@Override public void initRefreshAction() { logComposite.initRefresh(this); getParent().getParent().setCursor(CursorFactory.getCursor(SWT.CURSOR_WAIT)); chartDisplayStrategy.initRefreshAction(); }