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. | |
void | clearLocalPropertyListener () |
Clears the property listener object. | |
void | detachLocalPropertyListener (AbstractPropertyType propertyType) |
Uninstalls local property listener. | |
ParameterType | getLocalPropertyListenerObject () const |
Gets the property object with a local property listener installed. | |
bool | isLocalPropertyListenerInstalled () const |
Tells whether a local property listener has been installed. | |
virtual void | localPropertyChange ()=0 |
Called when local property changes. | |
ObjectPropertyListenerImpl ()=default | |
Constructor. | |
~ObjectPropertyListenerImpl () | |
Destructor. | |
Static Protected Member Functions | |
static void | localPropertyChangeCallback (PropertyObject &, const DataType &, PropertyNotificationReason reason, void *userData) |
Property change callback for object property. | |
Protected Attributes | |
StorageType | m_localPropertyListenerObject |
The object to which the local property listener has been installed. | |
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::DataSourceBindingSourceRuntime, kanzi::DataSourceExpressionValueSourceRuntime, kanzi::TypedObjectPropertyBindingSourceRuntime< T >, kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >, kanzi::TypedPropertyModifierBindingTargetRuntime< T >, kanzi::TypedRenderPropertyBindingSourceRuntime< T >, kanzi::TypedRenderPropertyExpressionValueSourceRuntime< T >, and kanzi::TypedValueSourceBindingTargetRuntime< T >.
|
protected |
The object to which the local property listener has been installed.