mozilla
Your Search Results

    extIEvents

    This content covers features introduced in Thunderbird 3

    The extIEvents interface supports custom events. extIEvents is defined in toolkit/components/exthelper/extIApplication.idl.

    Implemented via XPCOM service for extIApplication: see the instructions on the FUEL (Firefox), STEEL (Thunderbird) and SMILE (SeaMonkey) pages.

    Method overview

    void addListener(in AString aEvent, in extIEventListener aListener)
    void removeListener(in AString aEvent, in extIEventListener aListener)

    Attributes

    Attribute Type Description

    Methods

    addListener()

    Adds an event listener to the list. If multiple identical event listeners are registered on the same event target with the same parameters the duplicate instances are discarded. They do not cause the EventListener to be called twice and since they are discarded they do not need to be removed with the removeListener method.

    void addListener(in AString aEvent, in extIEventListener aListener)
    
    Parameters
    aEvent
    The name of the event. A list of events is available here.
    aListener
    The event listener to be added
    Return value

     

    removeListener()

    Removes an event listener from the list. Calling remove with arguments which do not identify any currently registered event listener has no effect.

    void removeListener(in AString aEvent, in extIEventListener aListener)
    
    Parameters
    aEvent
    The name of the event
    aListener
    The event listener to be removed
    Return value

     

    See also

     FUEL (Firefox), STEEL (Thunderbird) and SMILE (SeaMonkey)

    Document Tags and Contributors

    Contributors to this page: Sheppy, Potappo, jenzed, MarkFinkle, Mgjbot, SylvainPasche, Gomita, Aza, Seraph23
    Last updated by: Sheppy,