Beispiel #1
0
  @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();
      }
    }
  }
Beispiel #2
0
  @Override
  public void endRefreshAction(List<Exception> exceptions) {

    chartDisplayStrategy.endRefreshAction(exceptions);
    try {
      logComposite.endJob(exceptions);
    } finally {
      getParent().getParent().setCursor(CursorFactory.getCursor(SWT.CURSOR_ARROW));
    }
  }
Beispiel #3
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 #4
0
 public void highLight(Integer idx, Stock selectedShare, Boolean recalculationGranted) {
   chartDisplayStrategy.highLight(idx, selectedShare, recalculationGranted);
 }
Beispiel #5
0
 public void resetChart() {
   this.currentTabShareList = new ArrayList<SlidingPortfolioShare>();
   getHightlitedEventModel().resetOtherViewParams();
   setHighligtedId(null);
   chartDisplayStrategy.resetChart(true);
 }
Beispiel #6
0
 private void updateButtonsToolTips(ChartDisplayStrategy chartDisplayStrategy) {
   chartDisplayStrategy.updateButtonsToolTips();
 }
Beispiel #7
0
 @Override
 public void initRefreshAction() {
   logComposite.initRefresh(this);
   getParent().getParent().setCursor(CursorFactory.getCursor(SWT.CURSOR_WAIT));
   chartDisplayStrategy.initRefreshAction();
 }