daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Stock {
  2.     private String name;
  3.     private List<StockDayRating> stockDayRating;
  4.     public String getName() {
  5.         return name;
  6.     }
  7.     public List<StockDayRating> getStockDayRating() {
  8.         return stockDayRating;
  9.     }
  10. }
  11.    
  12. public class StockDayRating {
  13.     private String close;
  14.     public String getClose() {
  15.         return close;
  16.     }
  17. }
  18.    
  19. grid.addColumn(Stock::getStockDayRating).setCaption("Value");
  20.    
  21. grid.addColumn(Stock::getStockDayRating::getClose).setCaption("Value");
  22.    
  23. public <V> Grid.Column<T, V> addColumn(ValueProvider<T, V> valueProvider) {
  24.         return this.addColumn((ValueProvider)valueProvider, (AbstractRenderer)(new TextRenderer()));
  25.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top