[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TPager class file.
Author: | Qiang Xue <qiang.xue@gmail.com> |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TPager.php 1515 2006-11-26 20:09:44Z xue $ |
Poids: | 659 lignes (20 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TPager:: (33 méthodes):
loadState()
getControlToPaginate()
setControlToPaginate()
getMode()
setMode()
getButtonType()
setButtonType()
getNextPageText()
setNextPageText()
getPrevPageText()
setPrevPageText()
getFirstPageText()
setFirstPageText()
getLastPageText()
setLastPageText()
getPageButtonCount()
setPageButtonCount()
getCurrentPageIndex()
setCurrentPageIndex()
getPageCount()
setPageCount()
getIsFirstPage()
getIsLastPage()
onPreRender()
render()
buildPager()
createPagerButton()
buildNextPrevPager()
buildNumericPager()
buildListPager()
listIndexChanged()
onPageIndexChanged()
bubbleEvent()
TPagerPageChangedEventParameter:: (3 méthodes):
__construct()
getCommandSource()
getNewPageIndex()
TPagerMode:: (0 méthodes):
TPagerButtonType:: (0 méthodes):
loadState() X-Ref |
Restores the pager state. This method overrides the parent implementation and is invoked when the control is loading persistent state. |
getControlToPaginate() X-Ref |
return: string the ID path of the control whose content would be paginated. |
setControlToPaginate($value) X-Ref |
Sets the ID path of the control whose content would be paginated. The ID path is the dot-connected IDs of the controls reaching from the pager's naming container to the target control. param: string the ID path |
getMode() X-Ref |
return: TPagerMode pager mode. Defaults to TPagerMode::NextPrev. |
setMode($value) X-Ref |
param: TPagerMode pager mode. |
getButtonType() X-Ref |
return: TPagerButtonType the type of command button for paging. Defaults to TPagerButtonType::LinkButton. |
setButtonType($value) X-Ref |
param: TPagerButtonType the type of command button for paging. |
getNextPageText() X-Ref |
return: string text for the next page button. Defaults to '>'. |
setNextPageText($value) X-Ref |
param: string text for the next page button. |
getPrevPageText() X-Ref |
return: string text for the previous page button. Defaults to '<'. |
setPrevPageText($value) X-Ref |
param: string text for the next page button. |
getFirstPageText() X-Ref |
return: string text for the first page button. Defaults to '<<'. |
setFirstPageText($value) X-Ref |
param: string text for the first page button. If empty, the first page button will not be rendered. |
getLastPageText() X-Ref |
return: string text for the last page button. Defaults to '>>'. |
setLastPageText($value) X-Ref |
param: string text for the last page button. If empty, the last page button will not be rendered. |
getPageButtonCount() X-Ref |
return: integer maximum number of pager buttons to be displayed. Defaults to 10. |
setPageButtonCount($value) X-Ref |
param: integer maximum number of pager buttons to be displayed |
getCurrentPageIndex() X-Ref |
return: integer the zero-based index of the current page. Defaults to 0. |
setCurrentPageIndex($value) X-Ref |
param: integer the zero-based index of the current page |
getPageCount() X-Ref |
return: integer number of pages of data items available |
setPageCount($value) X-Ref |
param: integer number of pages of data items available |
getIsFirstPage() X-Ref |
return: boolean whether the current page is the first page Defaults to false. |
getIsLastPage() X-Ref |
return: boolean whether the current page is the last page |
onPreRender($param) X-Ref |
Performs databinding to populate data items from data source. This method is invoked by {@link dataBind()}. You may override this function to provide your own way of data population. param: Traversable the bound data |
render($writer) X-Ref |
Renders the control. The method overrides the parent implementation by rendering the pager only when there are two or more pages. param: THtmlWriter the writer |
buildPager() X-Ref |
Builds the pager content based on the pager mode. Current implementation includes building 'NextPrev', 'Numeric' and 'DropDownList' pagers. Derived classes may override this method to provide additional pagers. |
createPagerButton($buttonType,$enabled,$text,$commandName,$commandParameter) X-Ref |
Creates a pager button. Depending on the button type, a TLinkButton or a TButton may be created. If it is enabled (clickable), its command name and parameter will also be set. Derived classes may override this method to create additional types of buttons, such as TImageButton. param: string button type, either LinkButton or PushButton param: boolean whether the button should be enabled param: string caption of the button param: string CommandName corresponding to the OnCommand event of the button param: string CommandParameter corresponding to the OnCommand event of the button return: mixed the button instance |
buildNextPrevPager() X-Ref |
Builds a next-prev pager |
buildNumericPager() X-Ref |
Builds a numeric pager |
buildListPager() X-Ref |
Builds a dropdown list pager |
listIndexChanged($sender,$param) X-Ref |
Event handler to the OnSelectedIndexChanged event of the dropdown list. This handler will raise {@link onPageIndexChanged OnPageIndexChanged} event. param: TDropDownList the dropdown list control raising the event param: TEventParameter event parameter |
onPageIndexChanged($param) X-Ref |
This event is raised when page index is changed due to a page button click. param: TPagerPageChangedEventParameter event parameter |
bubbleEvent($sender,$param) X-Ref |
Processes a bubbled event. This method overrides parent's implementation by wrapping event parameter for <b>OnCommand</b> event with item information. param: TControl the sender of the event param: TEventParameter event parameter return: boolean whether the event bubbling should stop here. |
Classe: TPagerPageChangedEventParameter - X-Ref
TPagerPageChangedEventParameter class__construct($source,$newPageIndex) X-Ref |
Constructor. param: TControl the control originally raises the <b>OnCommand</b> event. param: integer new page index |
getCommandSource() X-Ref |
return: TControl the control originally raises the <b>OnCommand</b> event. |
getNewPageIndex() X-Ref |
return: integer new page index |
Classe: TPagerMode - X-Ref
TPagerMode class.Classe: TPagerButtonType - X-Ref
TPagerButtonType class.Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |