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