@Override
 public void beforePage() {
   Security security = model.getSecurity();
   List<TransactionPair<?>> transactions = security.getTransactions(model.getClient());
   Collections.sort(transactions, new TransactionPair.ByDate());
   tableViewer.setInput(transactions);
 }
Example #2
0
  private void onSecurityChanged(Security security) {
    prices.setData(Security.class.toString(), security);
    prices.setInput(security != null ? security.getPrices() : new ArrayList<SecurityPrice>(0));
    prices.refresh();

    latest.setInput(security);

    transactions.setInput(
        security != null ? security.getTransactions(getClient()) : new ArrayList<Transaction>(0));

    updateChart(security);
  }