[Uncleunc-developers] paging feature
Status: Beta
Brought to you by:
ulunum
|
From: <da...@cr...> - 2002-06-10 09:23:24
|
Hi, I forgot to mention this morning that the latest build also has a 'paging' feature that works (i.e. breaks a view holding many items up into pages of a given size, with next|back methods for skipping through them. The default way to do this is just to load all items up into a vector at once as usual, and then just display subsections of that when View.items() is called. There's scope to override this, though, which I'll look to do for databases and log file readers shortly, by moving the paging down to a lower level and only creating the Item wrappers for the current page. I revised the previous Pager interface completely to get this working (going from Pager containing the View to View containing the Pager), in case anyone has looked at this bit of code and thought they understood it ! Dave |