Abstract container class that manages event listeners and sending
events to them (PropertySetChangeNotifier
,
ItemSetChangeNotifier
).
Note that this class provides the internal implementations for both
types of events and notifiers as protected methods, but does not
implement the IPropertySetChangeNotifier
and
ItemSetChangeNotifier
interfaces directly. This
way, subclasses can choose not to implement them. Subclasses implementing
those interfaces should also override the corresponding addListener and removeListener methods to make them public.
|
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
addListener(self,
listener,
iface=None)
Implementation of the corresponding method in IPropertySetChangeNotifier and ItemSetChangeNotifier , override and implement the
interface to use this. |
source code
|
|
|
addCallback(self,
callback,
eventType=None,
*args) |
source code
|
|
|
removeListener(self,
listener,
iface=None)
Implementation of the corresponding method in IPropertySetChangeNotifier and ItemSetChangeNotifier , override and implement the
interface to use this. |
source code
|
|
|
removeCallback(self,
callback,
eventType=None) |
source code
|
|
|
|
|
fireItemSetChange(self,
event=None)
Sends a simple Item set change event to all interested listeners,
indicating that anything in the contents may have changed (items
added, removed etc.). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from container.IContainer :
addContainerProperty ,
addItem ,
containsId ,
getContainerProperty ,
getContainerPropertyIds ,
getItem ,
getItemIds ,
getType ,
removeAllItems ,
removeContainerProperty ,
removeItem ,
size
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|