Package muntjac :: Package ui :: Module abstract_select :: Class CaptionChangeListener
[hide private]
[frames] | no frames]

Class CaptionChangeListener

source code

                          object --+    
                                   |    
data.item.IPropertySetChangeListener --+
                                       |
                          object --+   |
                                   |   |
  data.property.IValueChangeListener --+
                                       |
                                      CaptionChangeListener

This is a listener helper for IItem and IProperty changes that should cause a repaint. It should be attached to all items that are displayed, and the default implementation does this in paintContent(). Especially "lazyloading" components should take care to add and remove listeners as appropriate. Call addNotifierForItem() for each painted item (and remember to clear).

NOTE: singleton, use getCaptionChangeListener().

Instance Methods [hide private]
 
__init__(self, select)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
addNotifierForItem(self, itemId) source code
 
clear(self) source code
 
valueChange(self, event)
Notifies this listener that the IProperty's value has changed.
source code
 
itemPropertySetChange(self, event)
Notifies this listener that the IItem's property set has changed.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, select)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

valueChange(self, event)

source code 

Notifies this listener that the IProperty's value has changed.

Parameters:
  • event - value change event object
Overrides: data.property.IValueChangeListener.valueChange
(inherited documentation)

itemPropertySetChange(self, event)

source code 

Notifies this listener that the IItem's property set has changed.

Parameters:
  • event - Property set change event object
Overrides: data.item.IPropertySetChangeListener.itemPropertySetChange
(inherited documentation)