Dokumentaro de Gambaso
Compilation & Installation
Components
gb
Array
Error
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Observer (gb)

This class allows you 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.

This class is creatable.

Properties
Object   Return the object observed by the observer.
Tag   Returns or sets the observer tag.

Methods
Detach   Detach the event observer from its object.