Package elisa :: Package core :: Package observers :: Module list :: Class ListObserver
[hide private]
[frames] | no frames]

Class ListObserver

source code


Instance Methods [hide private]
 
inserted(self, elements, position)
Message sent by a ListObservable when new elements are inserted in it.
source code
 
removed(self, elements, position)
Message sent by a ListObservable when elements are removed from it.
source code
 
modified(self, position, value)
Message sent by a ListObservable when one of its elements is modified.
source code
 
dirtied(self)
Message sent by a ListObservable when it is completely changed.
source code
 
element_attribute_set(self, position, key, old_value, new_value)
Message sent by a ListObservable when an attribute of one of its element is changed.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

inserted(self, elements, position)

source code 
Message sent by a ListObservable when new elements are inserted in it.
Parameters:
  • elements (list) - newly inserted elements
  • position (int) - index where the elements have been inserted at

removed(self, elements, position)

source code 
Message sent by a ListObservable when elements are removed from it.
Parameters:
  • elements (list) - removed elements
  • position (int) - former index of the elements

modified(self, position, value)

source code 
Message sent by a ListObservable when one of its elements is modified.
Parameters:
  • position (int) - index of the modified element
  • value (object) - new value of the element

dirtied(self)

source code 
Message sent by a ListObservable when it is completely changed. For example, this happens after a reverse or a sort.

element_attribute_set(self, position, key, old_value, new_value)

source code 
Message sent by a ListObservable when an attribute of one of its element is changed.
Parameters:
  • position (int) - index of the element
  • key (str) - modified attribute of the element
  • old_value (object) - value of the attribute before the change
  • new_value (object) - value of the attribute after the change