blob: 3193641f6751f69204b20dd6913abaee118f3b04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<?php
/**
* TImageButton class file
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @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;
use Prado\TPropertyValue;
/**
* TImageClickEventParameter class
*
* TImageClickEventParameter encapsulates the parameter data for
* {@link TImageButton::onClick Click} event of {@link TImageButton} controls.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @package Prado\Web\UI\WebControls
* @since 3.0
*/
class TImageClickEventParameter extends \Prado\TEventParameter
{
/**
* the X coordinate of the clicking point
* @var integer
*/
private $_x=0;
/**
* the Y coordinate of the clicking point
* @var integer
*/
private $_y=0;
/**
* Constructor.
* @param integer X coordinate of the clicking point
* @param integer Y coordinate of the clicking point
*/
public function __construct($x,$y)
{
$this->_x=$x;
$this->_y=$y;
}
/**
* @return integer X coordinate of the clicking point, defaults to 0
*/
public function getX()
{
return $this->_x;
}
/**
* @param integer X coordinate of the clicking point
*/
public function setX($value)
{
$this->_x=TPropertyValue::ensureInteger($value);
}
/**
* @return integer Y coordinate of the clicking point, defaults to 0
*/
public function getY()
{
return $this->_y;
}
/**
* @param integer Y coordinate of the clicking point
*/
public function setY($value)
{
$this->_y=TPropertyValue::ensureInteger($value);
}
}
|