Package muntjac :: Package data :: Package util :: Module container_hierarchical_wrapper :: Class PiggybackListener
[hide private]
[frames] | no frames]

Class PiggybackListener

source code

                          object --+    
                                   |    
                container.IContainer --+
                                       |
                          object --+   |
                                   |   |
container.IPropertySetChangeListener --+
                                       |
                          object --+   |
                                   |   |
    container.IItemSetChangeListener --+
                                       |
                                      PiggybackListener

This listener 'piggybacks' on the real listener in order to update the wrapper when needed. It proxies equals() and hashCode() to the real listener so that the correct listener gets removed.

Instance Methods [hide private]
 
__init__(self, realListener, wrapper, *args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
containerItemSetChange(self, event)
Lets the listener know a Containers visible (filtered and/or sorted, if applicable) Item set has changed.
source code
 
containerPropertySetChange(self, event)
Notifies this listener that the set of property IDs supported by the IContainer has changed.
source code
 
__eq__(self, obj) source code
 
__hash__(self)
hash(x)
source code

Inherited from container.IContainer: addContainerProperty, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, realListener, wrapper, *args)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

containerItemSetChange(self, event)

source code 

Lets the listener know a Containers visible (filtered and/or sorted, if applicable) Item set has changed.

Parameters:
  • event - change event text
Overrides: container.IItemSetChangeListener.containerItemSetChange
(inherited documentation)

containerPropertySetChange(self, event)

source code 

Notifies this listener that the set of property IDs supported by the IContainer has changed.

Parameters:
  • event - Change event.
Overrides: container.IPropertySetChangeListener.containerPropertySetChange
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)