use of name.abuchen.portfolio.model.LatestSecurityPrice in project portfolio by buchen.
the class HistoricalQuoteProviderPage method showSampleQuotes.
@Override
protected void showSampleQuotes(QuoteFeed feed, Exchange exchange) {
Object cacheKey = buildCacheKey(exchange);
List<LatestSecurityPrice> quotes = cacheQuotes.get(cacheKey);
if (quotes != null) {
tableSampleData.setInput(quotes);
tableSampleData.refresh();
} else {
tableSampleData.setMessage(Messages.EditWizardQuoteFeedMsgLoading);
tableSampleData.refresh();
Job job = new LoadHistoricalQuotes(feed, exchange, cacheKey);
job.setUser(true);
job.schedule(150);
}
}
Aggregations