Specialized binding target for value sources where the binding target itself is the value source. More...
#include <kanzi/core.ui/binding/typed_value_source_binding_target_runtime.hpp>
Public Member Functions | |
| PropertyTypeDescriptor< T >::TypedValueSource * | getValueSource () |
| Returns a pointer to a value source. | |
| const PropertyTypeDescriptor< T >::TypedValueSource * | getValueSource () const |
| Returns a pointer to a value source. | |
| ~TypedValueSourceBindingTargetRuntime () override | |
| Destructor. | |
Public Member Functions inherited from kanzi::ValueSourceBindingTargetRuntime | |
| 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) |
| Create a typed value source binding target runtime. | |
Static Public Member Functions inherited from kanzi::ValueSourceBindingTargetRuntime | |
| 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 Types | |
| using | ObjectPropertyListenerType |
| Type name for object property listener. | |
Protected Attributes | |
| bool | m_reuseAllowed |
| Whether reuse of the installed value source is allowed by other functionality, such as setProperty. | |
| PropertyTypeDescriptor< T >::TypedValueSource | m_valueSource |
| Value source. | |
Protected Attributes inherited from kanzi::ValueSourceBindingTargetRuntime | |
| 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). | |
Protected Attributes inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & > | |
| PropertyObject * | m_localPropertyListenerObject |
| The object to which the local property listener has been installed. | |
Additional Inherited Members | |
Public Types inherited from kanzi::BindingTargetRuntime | |
| using | BindingProcessorRuntimeConstIterator |
| Binding processor iterator type. | |
| using | BindingProcessorRuntimeContainer |
| Binding processor container type. | |
Static Protected Member Functions inherited from kanzi::ObjectPropertyListenerImpl< T, PropertyObject *, PropertyObject & > | |
| static void | localPropertyChangeCallback (PropertyObject &, const T &, PropertyNotificationReason reason, void *userData) |
| Property change callback for object property. | |
Specialized binding target for value sources where the binding target itself is the value source.
|
protected |
Type name for object property listener.
|
inlineoverride |
Destructor.
|
inlineexplicitprotected |
Constructor.
| propertyType | Property type to use. |
| field | Property field to use. |
| precedence | Precedence to use. |
| reuseAllowed | Is reuse of the installed value source allowed by other functionality, such as setProperty? |
| lookupContext | The lookup context to use for getting the target object. |
|
inlinestatic |
Create a typed value source binding target runtime.
| propertyType | Property type to use. |
| field | Property field to use. |
| precedence | Precedence to use. |
| reuseAllowed | Is reuse of the installed value source allowed by other functionality, such as setProperty? |
| lookupContext | The lookup context to use for getting the target object. |
|
inline |
Returns a pointer to a value source.
|
inline |
Returns a pointer to a value source.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::attachForReadOverride() implementation.
Reimplemented from kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::attachForWriteOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::detachOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::isConnectedOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::readOverride() implementation.
Reimplemented from kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
BindingTargetRuntime::writeOverride() implementation.
Implements kanzi::BindingTargetRuntime.
|
inlineoverrideprotectedvirtual |
|
inlineprotected |
Attaches the value source owner.
Initial value is the topmost value source value prior to attachment.
| reuseAllowed | Is reuse of the installed value source allowed by other functionality, such as setProperty? |
| lookupContext | The binding lookup context. |
|
inlineprotected |
Detaches the value source installed by this value source binding target runtime.
If value source is not installed, this function does not do anything.
|
inlineprotected |
Gets the initial value of a property type.
If node is not available, uses either node fetch or object.
|
protected |
Value source.
|
protected |
Whether reuse of the installed value source is allowed by other functionality, such as setProperty.