* Fire a click event programmatically * 程序化触发点击事件
(bDownEffect: boolean = true)
| 333 | * 程序化触发点击事件 |
| 334 | */ |
| 335 | public fireClick(bDownEffect: boolean = true): void { |
| 336 | if (bDownEffect && this._mode === EButtonMode.Common) { |
| 337 | this.setState(GButton.OVER); |
| 338 | setTimeout(() => this.setState(GButton.DOWN), 100); |
| 339 | setTimeout(() => this.setState(GButton.UP), 200); |
| 340 | } |
| 341 | this.handleClick(); |
| 342 | } |
| 343 | |
| 344 | /** |
| 345 | * Set button state |
nothing calls this directly
no test coverage detected