Skip to content

Instantly share code, notes, and snippets.

@spg
Last active January 3, 2016 14:59
Show Gist options
  • Save spg/8480239 to your computer and use it in GitHub Desktop.
Save spg/8480239 to your computer and use it in GitHub Desktop.
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