* @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2014 PradoSoft * @license http://www.pradosoft.com/license/ * @package Prado\Web\UI\WebControls */ namespace Prado\Web\UI\WebControls; /** * TBulletedListEventParameter * Event parameter for {@link TBulletedList::onClick Click} event of the * bulleted list. The {@link getIndex Index} gives the zero-based index * of the item that is currently being clicked. * * @author Qiang Xue * @package Prado\Web\UI\WebControls * @since 3.0 */ class TBulletedListEventParameter extends \Prado\TEventParameter { /** * @var integer index of the item clicked */ private $_index; /** * Constructor. * @param integer index of the item clicked */ public function __construct($index) { $this->_index=$index; } /** * @return integer zero-based index of the item (rendered as a link button) that is clicked */ public function getIndex() { return $this->_index; } }