Last active
January 3, 2016 14:59
-
-
Save spg/8480239 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<String> DAYS = Arrays.asList("Sunday", "Monday", | |
"Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); | |
TextCell textCell = new TextCell(); | |
// Create a CellList that uses the cell. | |
CellList<String> cellList = new CellList<String>(textCell); | |
// Set the total row count. This isn't strictly necessary, but it affects | |
// paging calculations, so its good habit to keep the row count up to date. | |
cellList.setRowCount(DAYS.size(), true); | |
// Push the data into the widget. | |
cellList.setRowData(0, DAYS); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment