Object property listener implementation. More...
#include <kanzi/core.ui/binding/object_property_listener_impl.hpp>
Protected Member Functions | |
void | attachLocalPropertyListener (ParameterType object, AbstractPropertyType propertyType) |
Installs local property listener. More... | |
void | clearLocalPropertyListener () |
Clears the property listener object. More... | |
void | detachLocalPropertyListener (AbstractPropertyType propertyType) |
Uninstalls local property listener. More... | |
ParameterType | getLocalPropertyListenerObject () const |
Gets the property object with a local property listener installed. More... | |
bool | isLocalPropertyListenerInstalled () const |
Tells whether a local property listener has been installed. More... | |
virtual void | localPropertyChange ()=0 |
Called when local property changes. More... | |
ObjectPropertyListenerImpl ()=default | |
Constructor. More... | |
~ObjectPropertyListenerImpl () | |
Destructor. More... | |
Static Protected Member Functions | |
static void | localPropertyChangeCallback (PropertyObject &, const DataType &, PropertyNotificationReason reason, void *userData) |
Property change callback for object property. More... | |
Protected Attributes | |
StorageType | m_localPropertyListenerObject |
The object to which the local property listener has been installed. More... | |
Object property listener implementation.
Implements object property listener that reacts to changes in given property on an object. Three parameters are given. First one describes the type of the type of the property, the second and third define the passed object for attachment and the storage within the listener.
In practice, StorageType and DataType should be either:
Classes inheriting the listener implementation must provide localPropertyChange() that is called when the property changes and getPropertyType() that returns the exact dynamic property type.
|
explicitprotecteddefault |
Constructor.
|
inlineprotected |
Destructor.
|
inlineprotected |
Installs local property listener.
May not be called if the local property listener has already been installed.
object | Object to listen. |
propertyType | Property type to listen. |
|
inlineprotected |
Uninstalls local property listener.
May be called even if the local property listener has not been installed.
propertyType | Property type for which to remove the listener. |
|
inlineprotected |
Clears the property listener object.
Should only be called if the local property listener object is definitely lost.
|
inlinestaticprotected |
Property change callback for object property.
reason | The property change notification reason. |
userData | Pointer to object property binding target runtime. |
|
inlineprotected |
Tells whether a local property listener has been installed.
|
inlineprotected |
Gets the property object with a local property listener installed.
|
protectedpure virtual |
Called when local property changes.
Implemented in kanzi::TypedObjectPropertyBindingSourceRuntime< T >, kanzi::TypedValueSourceBindingTargetRuntime< T >, kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >, kanzi::TypedRenderPropertyBindingSourceRuntime< T >, kanzi::TypedRenderPropertyExpressionValueSourceRuntime< T >, kanzi::TypedPropertyModifierBindingTargetRuntime< T >, kanzi::DataSourceExpressionValueSourceRuntime, and kanzi::DataSourceBindingSourceRuntime.
|
protected |
The object to which the local property listener has been installed.