GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing api-reference.treefrogframework.org — TreeFrogFramework: TPaginator Class Reference
Loading...
Searching...
No Matches
TPaginator Class Reference
Detailed DescriptionThe TPaginator class provides simple functionality for a pagination bar. Constructor & Destructor Documentation◆ TPaginator() [1/2]
Constructs a TPaginator object using the parameters. itemsTotal specifies the total number of items. itemsPerPage specifies the maximum number of items to be shown per page. midRange specifies the number of pages to show ‘around’ the current page on a pagination bar, and should be an odd number. ◆ TPaginator() [2/2]
Copy constructor. ◆ ~TPaginator()
Member Function Documentation◆ calculateNumPages()
Calculates the total number of pages. Internal use only. ◆ currentPage()
Returns the current page number. ◆ firstPage()
Returns the first page number, always 1. ◆ hasNext()
Returns true if there is at least one page after the current page; otherwise returns false. ◆ hasPage()
Returns true if page is a valid page; otherwise returns false. ◆ hasPrevious()
Returns true if there is at least one page before the current page; otherwise returns false. ◆ itemCountOfCurrentPage()
Returns the number of items of current page. ◆ itemCountPerPage()
Returns the maximum number of items to be shown per page. ◆ itemTotalCount()
Returns the total number of items. ◆ lastPage()
Returns the last page number. ◆ midRange()
Returns the number of page numbers to be shown on a pagination bar. ◆ nextPage()
Returns the page number after the current page. ◆ numPages()
Returns the total number of pages. ◆ offset()
Returns the number of items before the first item of the current page. ◆ operator=()
Assignment operator. ◆ previousPage()
Returns the page number before the current page. ◆ range()
Returns a list of page numbers to be shown on a pagination bar. ◆ setCurrentPage()
Sets the current page to page and recalculates other parameters. ◆ setItemCountPerPage()
Sets the maximum number of items to be shown per page to count, and recalculates other parameters. ◆ setItemTotalCount()
Sets the total number of items to total and recalculates other parameters. ◆ setMidRange()
Sets the number of page numbers to range and recalculates other parameters. The documentation for this class was generated from the following files:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||