Kanzi 4.0.0-beta2
kanzi::PropertyListener Class Reference

#include <kanzi/ui/node/concept/list_box/data_source_list_box_item_generator_impl.hpp>

Inheritance diagram for kanzi::PropertyListener:
[legend]

Public Member Functions

void onPropertyChanged (PropertyNotificationReason) override
 Method to be executed when property is changed.
 
 PropertyListener (Node *node, kanzi::AbstractPropertyType type, PropertyChangedFunction function)
 
- Public Member Functions inherited from kanzi::NodePropertyNotificationHandler
NodegetNode () const
 Access the node.
 
void invalidate ()
 Invalidates the state of the notification handler.
 
bool isValid () const
 Tell if this notification handler is valid.
 
- Public Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
AbstractPropertyType getPropertyType () const
 Get the property type this handler is listening.
 

Additional Inherited Members

- Protected Member Functions inherited from kanzi::NodePropertyNotificationHandler
void attach ()
 Attach to node.
 
void detach ()
 Detach from node.
 
 NodePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor.
 
 NodePropertyNotificationHandler (NodePropertyNotificationHandler &&other) noexcept
 Move constructor.
 
NodePropertyNotificationHandleroperator= (NodePropertyNotificationHandler &&other) noexcept
 Move operator.
 
template<typename T >
void toggleNotificationHandler (bool add)
 
 ~NodePropertyNotificationHandler () override
 Destructor.
 
- Protected Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
 AbstractPropertyNotificationHandler ()=default
 Default constructor.
 
 AbstractPropertyNotificationHandler (AbstractPropertyNotificationHandler &&other) noexcept
 Move constructor.
 
 AbstractPropertyNotificationHandler (AbstractPropertyType propertyType)
 Constructor.
 
 AbstractPropertyNotificationHandler (const AbstractPropertyNotificationHandler &)=delete
 Deleted copy constructor.
 
AbstractPropertyNotificationHandleroperator= (AbstractPropertyNotificationHandler &&other) noexcept
 Move operator.
 
AbstractPropertyNotificationHandleroperator= (const AbstractPropertyNotificationHandler &)=delete
 Deleted copy operator.
 
virtual ~AbstractPropertyNotificationHandler ()
 Destructor.
 
- Static Protected Member Functions inherited from kanzi::NodePropertyNotificationHandler
template<typename T >
static void notificationHandler (PropertyObject &, const typename PropertyType< T >::Traits::StorageType &, PropertyNotificationReason reason, void *data)
 Notification handler function.
 
- Protected Attributes inherited from kanzi::NodePropertyNotificationHandler
Nodem_node
 Node attached to.
 

Constructor & Destructor Documentation

◆ PropertyListener()

kanzi::PropertyListener::PropertyListener ( Node * node,
kanzi::AbstractPropertyType type,
PropertyChangedFunction function )
inline

Member Function Documentation

◆ onPropertyChanged()

void kanzi::PropertyListener::onPropertyChanged ( PropertyNotificationReason reason)
inlineoverridevirtual

Method to be executed when property is changed.

Parameters
reasonWhy property was changed.

Implements kanzi::AbstractPropertyNotificationHandler.


The documentation for this class was generated from the following file: