you did. it's not in IPageable. that's an /extra/ function of /some/
components that happen to implement IPageable. an important distinction.
i really did state this carefully if you were reading it:
"i dunno. seems to me that the paging component should just change pages.
we ought to have a separate component to deal with item count feedback
like this.
if you look at google's site, the paging component and the "showing x to
y of z"
feedback are at opposite ends of the page. i don't think they're related
really.
*/i think this should probably be a separate interface like IRange or
ISelection or
something /*that you could hook up to something that shows the range of
something
being displayed. you wouldn't necessarily have to have paging when you
showed
the range or vice versa."
Igor Vaynberg wrote:
That was Jonathan's idea. That's why Irange getPageRange() is in the
ipageable. It returns the first, and the last page being displayed, as well
as the total num of pages available.
Unless I misunderstood something...
-Igor
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Johan Compagner
Sent: Wednesday, August 03, 2005 2:18 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] IPageable interface
Why would a component display 3 pages at a time?
Pageable means that it pages (read displays) 1 page at one time.
if you want to display 3 pages at the time just make youre
page bigger (if one page displays 10 rows then make it 30)
johan
Igor Vaynberg wrote:
Maybe I didn't express what I wanted clearly.
I think setCurrentPage(int) is fine if the component is
displaying a
page at a time, but what does setCurrentPage(int) mean if the
component is displaying 3 pages at a time? Is it setting the first
page of 3? Or is it setting the last page of 3? Or the middle page?
And what I meant was just having one of those methods in
ipageable not
all 3, my question was which one do you guys think is more
appropriate...
-Igor
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference &
EXPO September 19-22, 2005 * San Francisco, CA * Development
Lifecycle Practices Agile & Plan-Driven Development *
Managing Projects & Teams * Testing & QA Security * Process
Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user