首页 > comp > gb > observer 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
Observer (gb)
This class allows to catch the events raised by an object before its main event observer gets them.

The observer object will raise the same events as the observed object, and so you will handle them with the same handlers.

If you cancel an event in the observer event handler, the main event observer of the observed object will never see it.

See the TableView control source code for an example: it is implemented by using this method.

The observer object is attached to the observed object, and is freed only when the observed object is freed too.

代号
该类是可创建

属性 
Object  Tag