1 5 package org.exoplatform.commons.utils; 6 7 import java.util.List ; 8 13 public class ObjectPageList extends PageList { 14 15 private List objects_ ; 16 17 public ObjectPageList(List list, int pageSize) { 18 super(pageSize) ; 19 objects_ = list ; 20 setAvailablePage(list.size()) ; 21 } 22 23 protected void populateCurrentPage(int page) throws Exception { 24 currentListPage_ = objects_.subList(getFrom(), getTo()) ; 25 } 26 27 public List getAll() throws Exception { return objects_ ; } 28 } 29 | Popular Tags |