Source for file PageNavigator.class.php
Documentation is available at PageNavigator.class.php
* @copyright 2009-2010 NADEO
* Page navigation arrows at the bottom of the lists
* @subpackage GUIToolkit_Cards
$this->showFastNext =
false;
* Sets the size of the navigation icons
function setSize($iconSize =
5, $nullValue=
null)
$this->arrowNext->setSize($iconSize, $iconSize);
$this->arrowPrev->setSize($iconSize, $iconSize);
$this->arrowLast->setSize($iconSize, $iconSize);
$this->pageNumber =
$pageNumber;
$this->currentPage =
$currentPage;
* Shows or hides the "go to first/last" navigation icons
* Returns whether the "go to first/last" navigation icons are shown
* Shows or hides the "fast prev/next" navigation icons
$this->showFastNext =
$show;
* Returns whether the "fast prev/next" navigation icons are shown
return $this->showFastNext;
* Shows or hides the text. Note that if the current page or the page number
* isn't declared, the text won't be shown
* Returns whether the text is shown
* Saves the PageNavigator in the GUI objects stack
if(!$this->currentPage ||
!$this->pageNumber)
// Auto show fast next / last
$this->text->setStyle("TextStaticSmall");
$this->text->setText($this->currentPage .
"/" .
$this->pageNumber);
// Positioning in relation to the center of the containing frame
$this->text->setAlign("center", "center");
$this->text->setPositionZ(1);
$this->arrowNext->setPosition(($this->text->getSizeX() /
2) +
1, 0, 1);
$this->arrowPrev->setAlign("right", "center");
$this->arrowPrev->setPosition(-
($this->text->getSizeX()/
2) -
1, 0, 1);