int endPosition = correctVerticalPageUpPosition(Math.min(
rowsCached.size(), i+VERTICAL_MAX_ELEMENTS) - 1);
String label = rowsCached.get(i).getDescription() + " - " +
rowsCached.get(endPosition).getDescription();
Listitem item = new Listitem();
item.appendChild(new Listcell(label));
advancedAllocationVerticalPagination.appendChild(item);
verticalPaginationIndexes.add(i);
}
if (!rowsCached.isEmpty()) {
advancedAllocationVerticalPagination.setSelectedIndex(0);