Base class for value source binding target runtimes. More...
#include <kanzi/core.ui/binding/value_source_binding_target_runtime.hpp>
Public Member Functions | |
void | clearValueSourceOwner () |
Clears the value source owner. | |
PropertyValuePrecedence | getPrecedence () const |
Gets value source precedence. | |
PropertyField | getPropertyField () const |
Gets a property field. | |
AbstractPropertyType | getPropertyType () const |
Gets a property type. | |
bool | hasValueSourceOwner () const |
Indicates whether this target runtime still has a value source owner. | |
Public Member Functions inherited from kanzi::BindingTargetRuntime | |
void | attachForRead () |
Attaches the binding target runtime for reading. | |
void | attachForWrite () |
Attaches the binding target runtime for writing. | |
BindingProcessorRuntimeConstIterator | beginProcessorRuntimes () const |
Gets an iterator to the beginning of binding processor runtimes. | |
void | createBindingProcessorsRuntimes (const AbstractBinding &binding) |
Creates a processor runtime for each BindingProcessor held by the binding parameter. | |
void | detach () |
Detaches binding target runtime. | |
BindingProcessorRuntimeConstIterator | endProcessorRuntimes () const |
Gets an iterator to the end of binding processor runtimes. | |
AbstractBindingRuntime * | getBindingRuntime () const |
Gets the binding runtime. | |
BindingLookupContext & | getLookupContext () const |
Gets the lookup context. | |
bool | isConnected () |
Indicates whether this source is connected. | |
bool | read (Variant &value) |
Reads a value from the binding target. | |
void | setBindingRuntime (AbstractBindingRuntime &bindingRuntime) |
Sets the binding runtime. | |
bool | write (const Variant &value) |
Writes a value to the binding target. | |
virtual | ~BindingTargetRuntime ()=default |
Destructor. | |
Static Public Member Functions | |
static BindingTargetRuntimePtr | create (AbstractPropertyType propertyType, PropertyField field, PropertyValuePrecedence precedence, bool reuseAllowed, BindingLookupContext &lookupContext) |
Creates a value source binding target runtime without an actual binding target. | |
Protected Member Functions | |
ValueSourceBindingTargetRuntime (AbstractPropertyType propertyType, PropertyField field, PropertyValuePrecedence precedence, PropertyObject *object) | |
Constructor. | |
Protected Member Functions inherited from kanzi::BindingTargetRuntime | |
virtual void | attachForReadOverride () |
Implementation-dependent attach. | |
virtual void | attachForWriteOverride ()=0 |
Implementation-dependent attach. | |
BindingTargetRuntime ()=default | |
Constructor. | |
virtual void | detachOverride ()=0 |
Implementation-dependent detach. | |
virtual bool | isConnectedOverride ()=0 |
Implementation-dependent connected check. | |
virtual bool | readOverride (Variant &value) |
Implementation-dependent read. | |
virtual bool | writeOverride (const Variant &value)=0 |
Implementation-dependent write. | |
Protected Attributes | |
PropertyField | m_field |
Property field to use. | |
bool | m_localReadListenerRequested |
Indicates whether the local read listener is requested. | |
PropertyObject & | m_object |
Object the value source is installed to. | |
PropertyValuePrecedence | m_precedence |
Precedence to use. | |
AbstractPropertyType | m_propertyType |
Property type to use. | |
AbstractPropertyTypeDescriptor::ValueSourceOwner * | m_valueSourceOwner |
Owner for the binding value source this runtime installs. | |
Protected Attributes inherited from kanzi::BindingTargetRuntime | |
AbstractBindingRuntime * | m_bindingRuntime |
Abstract binding runtime for this target. | |
BindingProcessorRuntimeContainer | m_processorRuntimes |
Binding processors runtimes (for the target, backward direction). | |
Additional Inherited Members | |
Public Types inherited from kanzi::BindingTargetRuntime | |
using | BindingProcessorRuntimeConstIterator |
Binding processor iterator type. | |
using | BindingProcessorRuntimeContainer |
Binding processor container type. | |
Base class for value source binding target runtimes.
Inherited by type-specialized version.
Kanzi creates a value source binding target runtime when you add a binding to a Node or RenderPass using the setBinding() function.
To create a ValueSourceBindingTargetRuntime for a binding runtime when adding the binding to a Node or RenderPass:
ValueSourceBindingTargetRuntime creates a property value source, that owns the binding runtime that was created. If the property value source in Node or RenderPass is removed, the binding runtime is removed as well. As bindings are usually set with local precedence, setting a local value with setProperty() removes the binding.
|
explicitprotected |
Constructor.
propertyType | Property type to use. |
field | Property field to use. |
precedence | Property value precedence. |
object | The PropertyObject to install to. |
|
static |
Creates a value source binding target runtime without an actual binding target.
propertyType | Property type to use. |
field | Property field to use. |
precedence | Property value precedence. |
reuseAllowed | Whether reuse of the installed value source is allowed by other functionality, such as setProperty. |
lookupContext | The lookup context to use for getting the target object. |
|
inline |
Gets a property type.
Required by the inheriting classes.
|
inline |
Gets a property field.
|
inline |
Gets value source precedence.
Required by the inheriting classes.
|
inline |
Indicates whether this target runtime still has a value source owner.
|
inline |
Clears the value source owner.
To be called by the owner upon destruction to prevent recursive destruction.
|
protected |
Property type to use.
|
protected |
Property field to use.
|
protected |
Precedence to use.
|
protected |
Object the value source is installed to.
|
protected |
Indicates whether the local read listener is requested.
|
protected |
Owner for the binding value source this runtime installs.
Not created before the binding has been executed once.