little refactor moving onPopulate() to populate(), and make first called by second, and overridable?

2012-12-18 Thread manuelbarzi
hi, i would appreciate having the choice to do something on DataView.onPopulate (at end of populating process), but cannot override this method (final at RefreshingView). i know i have the choice to compare Item.getIndex() to DataView.getItemsPerPage() to determine the end of populating process,

Re: little refactor moving onPopulate() to populate(), and make first called by second, and overridable?

2012-12-18 Thread vineet semwal
onpopulate() is called every time dataview/repeater is rendered,you can do the same thing after overriding onbeforerender, pseducode below new DataView(){ public void onbeforerender(){ super.onbeforerender(); //this will create/populate children too //now my code } } On Tue, Dec 18, 2012 at

Re: little refactor moving onPopulate() to populate(), and make first called by second, and overridable?

2012-12-18 Thread manuelbarzi
sure, vineet, there are other ways... know that. the question focus more on providing a bit+ intuitiveness to code, but this fact may result quite relative, that's all. thx, anyway. . On Tue, Dec 18, 2012 at 2:17 PM, vineet semwal vineetsemwa...@gmail.com wrote: onpopulate() is called every