[Gambas-user] Event handler in descendent class
bbb888
bbruen at ...2308...
Sun Dec 13 02:21:11 CET 2009
Benoît Minisini wrote:
>
>> Is there a way for a specialised class to have an event handler for an
>> event raised in the base class?
>>
>> Specifically in this case I have a scaffolding class "workCodeTableItem"
>> that inherits "CodeTableItem", adds a few scaffold attributes and I have
>> now found that one of these attributes needs to be set in response to an
>> event that is raised at quite a few places in the base class.
>>
>> tia
>> Bruce
>>
>
> You must use an Observer, that allows you to intercept any event raised by
> any
> object.
>
> Nota bene: events are not raise by a class, but by an object. But I think
> you
> just said "class" as a shortcut for "object of the class".
>
> So look at the Observer class documentation, and tell me if you have any
> question.
>
> Regards,
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
Thanks Benoît,
Pretty simple really.
bruce
--
View this message in context: http://old.nabble.com/Event-handler-in-descendent-class-tp26761203p26762748.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list