public class LazyLoad extends WebPage {
public LazyLoad() {
IColumn[] columns = new IColumn[] {
new PropertyColumn(new Model("col1"), "intValue"),
new PropertyColumn(new Model("col2"), "class") };
ISortableDataProvider dataProvider = new SortableDataProvider() {
public int size() {
return 300000;
}
public IModel model(Object object) {
return new Model((Integer) object);
}
public Iterator iterator(int first, int count) {
return loadEntriesFromDatabase(first, count).iterator();
}
private List<Integer> loadEntriesFromDatabase(int first, int count) {
List<Integer> items = new ArrayList<Integer>();
for (int i = 0; i < count; i++) {
items.add(new Integer(first + i));
}
return items;
}
};
DefaultDataTable t = new DefaultDataTable("t", columns, dataProvider, 3);
add(t);
}
}
You'll eat back procrastination, get peace of mind, and free up time. You get guidance, inspiration, social connections and support, focus, strategies, and solutions...Plus, a report called "28 Ways to Stop Procrastinating." * Give yourself more pe
M. Chevalier-Boisvert, and M. Feeley. 29th European Conference on Object-Oriented Programming (ECOOP 2015), volume 37 of Leibniz International Proceedings in Informatics (LIPIcs), page 101--123. Dagstuhl, Germany, Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik, (2015)
Z. Zheng, G. Webb, and K. Ting. Proceedings of the Sixteenth International Conference on Machine Learning (ICML-99), page 493-502. San Francisco, Morgan Kaufmann, (1999)
M. Viswanathan, and G. Webb. Lecture Notes in Computer Science 1398: Proceedings of the Tenth European Conference on Machine Learning (ECML'98), page 149-159. Berlin/Heidelberg, Springer, (1998)