Mix-in class that extends a class with a click action event that is called when the class receives a click event.
- T specifies the type to extend with the ClickListener behavior.
Inherits from: T
|Initializes a new instance of the ClickListener class.|
|virtual void||handleClickEvent(const ClickEvent & event)|
|Ensures that the clickEvent is propagated to the super class T and to the clickAction listener.|
|void||setClickAction(GenericCallback< const T <, const ClickEvent & > & callback)|
|Associates an action to be performed when the class T is clicked.|
|GenericCallback< const T <, const ClickEvent & > *||clickAction|
|The callback to be executed when T is clicked.|
Ensures that the clickEvent is propagated to the super class T and to the clickAction listener.
|event||Information about the click.|
Associates an action to be performed when the class T is clicked.
|callback||The callback to be executed. The callback will be given a reference to T.|